public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-6736] check_GNU_style_lib: skip .py files (one should use flake8).
@ 2022-01-19 13:54 Martin Liska
0 siblings, 0 replies; only message in thread
From: Martin Liska @ 2022-01-19 13:54 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:68aa3c08ef1c33d9ad1263f4b939638920de9f11
commit r12-6736-g68aa3c08ef1c33d9ad1263f4b939638920de9f11
Author: Martin Liska <mliska@suse.cz>
Date: Wed Jan 19 14:53:43 2022 +0100
check_GNU_style_lib: skip .py files (one should use flake8).
contrib/ChangeLog:
* check_GNU_style_lib.py: Skip Python files.
Diff:
---
contrib/check_GNU_style_lib.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py
index ac3682fb2af..b5ab67ed285 100755
--- a/contrib/check_GNU_style_lib.py
+++ b/contrib/check_GNU_style_lib.py
@@ -276,7 +276,7 @@ def check_GNU_style_file(file, file_encoding, format):
for pfile in patch.added_files + patch.modified_files:
t = pfile.target_file.lstrip('b/')
# Skip testsuite files
- if 'testsuite' in t:
+ if 'testsuite' in t or t.endswith('.py'):
continue
for hunk in pfile:
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-19 13:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-19 13:54 [gcc r12-6736] check_GNU_style_lib: skip .py files (one should use flake8) Martin Liska
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).