From patchwork Wed Oct 4 16:58:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tromey X-Patchwork-Id: 14932 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:254a:b0:403:3b70:6f57 with SMTP id hf10csp273592vqb; Wed, 4 Oct 2023 10:00:46 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGl3DyUFs07opxEp8IwsPlnuFPoIddtKg8YaLzLLWT3Nf2mB3xP4Fty01PMRqqgvl3JJiHb X-Received: by 2002:a05:6402:14c7:b0:51d:f5bd:5a88 with SMTP id f7-20020a05640214c700b0051df5bd5a88mr2555104edx.38.1696438846395; Wed, 04 Oct 2023 10:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696438846; cv=none; d=google.com; s=arc-20160816; b=eJQ9mhk25lIhKEbhKX+Zalm+eSd0makkXb2lwUDOMUdql93Q8Iaau90ww0PGjfJZm+ YHHTb1YMW00MgTEMGhc5fII3t++rn/tx/8JRGethtsMoJCmHYwSCz4MTB8Clut72ij8N FDPmyIZQYYjnHJS25QdPE2vCt1q5E4Do/6tDrgdc9FosPPFRzAOb+urbRuL6QjeXM2tx wUlufm56hI54L3TOdC5bZD3EQ85zyZTrqJvPksuZD8sZGhWWM+Fh+ZJjRnCXC7VLQfO/ VrkV/9Q7rnqcAuMrvu390faeGengMebBxZ/h49yXMGAwVkCPneWTPtm1MHgtFSWjTxpG zssw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :dmarc-filter:delivered-to; bh=4jLrdCx+IMhP6LAoZoT/3d/0fYr1T0uxhyx9V8InhNM=; fh=tWtX2nBowArQFpO5tL5gtY10/+xKa8dUFoy2HZVoc4M=; b=EL4Q6W4IVjfS2C+Uwl4UXl2izbkWjdN891qqBJGuJs6UDCFnsU9Mjp5ByDJLlL+u4n nnvYuuZsoARHXTn/Go7lgfCy0s5G4VssswVfBkjCSbMF061cpIxHs8B4+q6Mb6u8lAi3 8LvLib3xprJUgbBR2VlSdi4j2FNDVV7QAtSVifh6CXvW22PBroMPQyz7ZJN83X7z6nSk RBTYIctoNmX4QdH4Jjrm9j9YL9HQcBMR8K4BtO6u3w8ag4l9gOF+oFi9PSRrbJ0ck+pa kHl3gUfcsS1o6EAnQhwZJUy6BT/bixB6BUDkg3ieC4CY6tyAQZkAEQ3J4gQnQo+3n9hm qQlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=Tpuut0IX; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id y20-20020aa7ccd4000000b005257e2b80bbsi79229edt.608.2023.10.04.10.00.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 10:00:46 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@adacore.com header.s=google header.b=Tpuut0IX; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=adacore.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 71F87382E6A9 for ; Wed, 4 Oct 2023 16:59:20 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-il1-x131.google.com (mail-il1-x131.google.com [IPv6:2607:f8b0:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 2C1603856DDA for ; Wed, 4 Oct 2023 16:58:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C1603856DDA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x131.google.com with SMTP id e9e14a558f8ab-3512fae02ecso155145ab.2 for ; Wed, 04 Oct 2023 09:58:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1696438724; x=1697043524; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4jLrdCx+IMhP6LAoZoT/3d/0fYr1T0uxhyx9V8InhNM=; b=Tpuut0IXTalNJKdQOSRr7YwWpqfCGZgAiFLPsIqaJs5DFcuw3ov96THjoQzz/0Lr3f ylIhU6r4tnUHLymlqY0wOzq8EpCRkmpDnsnJHkJqps9hTvxfVVvrvGkpgG6Yo8iH7gdM /MeWVDjOMIYiRsRN4CtA7JCltCFYhrHEUsnz/hiSlfARqEEOOBPsRtBa7pIKoXrBc5vy KkoYDsOlIUZWDiQ3mDtCzKSnG9L6QBxfGPwK6Yccx9Op+dstWLISfN6+GjDbcPON4Dob xoaHmds2isxnnRdAVCBRdk/rmLVaTuF/YxAJy3bkm/j4dvRxf6SVLVSPeUH3WzmgWCcJ 18Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696438724; x=1697043524; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4jLrdCx+IMhP6LAoZoT/3d/0fYr1T0uxhyx9V8InhNM=; b=kJ8s6YlU4mGah83k5J3rqfpZ3xGTsltotdcbhgjUP8l/aKc070dfPqQs92VIGhZwaT vaLLeYd+oOkZjrofyFhlhZadYDbsMZiQNobPyHuiLhAe5oEFBNSBLlWEN7uTFKnFssqd oMQbGDZjoorTGRbeUkLx9QQhGg4CHAs4Xw1eX8T1AYN1gsMCx5teqT0G2HgUG6vlD95C 0TrqtfPgvL5p8duNztwce8sOHDEAkyGDG4Ocm3siZ3eSvLAgoX8h6Wg/qCAPOSPBJQru p7p4udTygEOPr3SzDlEu7Lza97lR1UxUcAi3IelpofOsGyZUaGGood3jMkXaKg45N4nq YSaA== X-Gm-Message-State: AOJu0YyKkNKmo/z5/N9nqvJHY+yzEAi/CXdtowjAwD4lu9qD+S5OHkOh l7lmBGFIRxppZB3iqsaGFsL0TqNiAyrKUN6j11UyXA== X-Received: by 2002:a05:6e02:214c:b0:34f:2edd:9213 with SMTP id d12-20020a056e02214c00b0034f2edd9213mr3502672ilv.21.1696438724277; Wed, 04 Oct 2023 09:58:44 -0700 (PDT) Received: from localhost.localdomain (71-211-130-31.hlrn.qwest.net. [71.211.130.31]) by smtp.gmail.com with ESMTPSA id e4-20020a02a784000000b0043cec02791bsm1066491jaj.96.2023.10.04.09.58.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 09:58:43 -0700 (PDT) From: Tom Tromey To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org Subject: [RFC 0/2] black, isort, and flake8 configuration Date: Wed, 4 Oct 2023 10:58:30 -0600 Message-Id: <20231004165832.1750191-1-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1778845059471946034 X-GMAIL-MSGID: 1778845059471946034 This short series adds configuration files for black ("opinionated" code formatter), isort (import sorter) and flake8 (Python lint) to libstdc++. I marked it as RFC since sometimes people don't like black's output. In gdb we use it -- at first I found some of its decisions a little odd, but overall it's nice not to have to review for or worry about the minitia of code formatting. Tom