From patchwork Fri Feb 23 20:43:02 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Marchi X-Patchwork-Id: 86306 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AEDB1385841A for ; Fri, 23 Feb 2024 20:43:43 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from smtp.polymtl.ca (smtp.polymtl.ca [132.207.4.11]) by sourceware.org (Postfix) with ESMTPS id 3EDBE3858C53 for ; Fri, 23 Feb 2024 20:43:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3EDBE3858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=polymtl.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=polymtl.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3EDBE3858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=132.207.4.11 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708720998; cv=none; b=YVKoW5u5VEZz8vqLzIp8VX1OHGUXsIQ1gNuDwTyjyg5/hApashx9eSbEopGnIhxRODIUpAbrZ2BsmK9ITEpgSZJMQmXujGpi9b1iQ4eT4zgti53YcmxiB8vZJO01g0NWA9TyD7GySUVE1kSjnH492+TcxfKzcZqw4wZ8dyUn1As= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708720998; c=relaxed/simple; bh=VhvTOndfVaMHW2NaAn+0sM2NHdKyOTjVKrKme3xvfpw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=Z5MLCUaMwaaDXaduwOKRXh1LtLhIYMOQcvSyHTfm91getuJe58FRzhwu9MKtRvImAw+oWEARaKPdcEIvruyORcf3v65+QGj/oX7eL9WcAz8JsQcL9P+TD4A+kX4SXa1A4JlDkBYNj8UJPM8pynI859QQu+hX0E1LUt0iYjRNcdg= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id 41NKhASD010275 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 23 Feb 2024 15:43:15 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp.polymtl.ca 41NKhASD010275 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=polymtl.ca; s=default; t=1708720995; bh=i2hKqs2UAWSr6IaU1fPeUZ/UxacMD03gb9bQOxaPKys=; h=From:To:Cc:Subject:Date:From; b=n8bYbDLJQW1lg606DrgBBNAlo2QU4L1TH/KD2k2j8zyvWPU/kIs8c4kctZMEO2j8O HHfu/ME2WgmveeBrbXLyU7a31oxk22k4SL3NR6M9gLue/qewe4oq2Ot5xBUh4rTMC3 cZ7zWylmPLkhvIaQFc50PLT3cBcp65bxcI1fLDew= Received: from simark.localdomain (modemcable238.237-201-24.mc.videotron.ca [24.201.237.238]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 31EDC1E030; Fri, 23 Feb 2024 15:43:10 -0500 (EST) From: Simon Marchi To: gdb-patches@sourceware.org Cc: Simon Marchi Subject: [PATCH] gdb: disable formatting-related flake8 warnings Date: Fri, 23 Feb 2024 15:43:02 -0500 Message-ID: <20240223204309.416580-1-simon.marchi@polymtl.ca> X-Mailer: git-send-email 2.43.2 MIME-Version: 1.0 X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Fri, 23 Feb 2024 20:43:10 +0000 X-Spam-Status: No, score=-3188.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE 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: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Tom Tromey pointed out that flake8 gives some warnings related to formatting, such as: python/lib/gdb/prompt.py:149:43: E203 whitespace before ':' We don't care about those, since all our formatting is handled automatically by black, so ignore these warnings. The list of warnings I put comes from: https://black.readthedocs.io/en/stable/guides/using_black_with_other_tools.html#flake8 Note that since the setup.cfg file is under the gdb directory, it will be picked up if you run flake8 from the gdb directory like this: binutils-gdb/gdb $ flake8 python but not if you do: binutils-gdb $ flake8 gdb/python Change-Id: I1e42aefd388b9c3b6c9d52b4f635ac881db4bbc1 --- gdb/setup.cfg | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 gdb/setup.cfg base-commit: bf8ab2ae8d33e46bb6612408c75e75a6de137ccc diff --git a/gdb/setup.cfg b/gdb/setup.cfg new file mode 100644 index 000000000000..28d7c876b33c --- /dev/null +++ b/gdb/setup.cfg @@ -0,0 +1,5 @@ +[flake8] +# E203: Whitespace before ':' (conclicts with black's way of formatting) +# E501: line too long +# E701: Multiple statements on one line (colon) (E701) +ignore = E203,E501,E701