From: Martin Liska Date: Wed, 19 Jan 2022 13:53:43 +0000 (+0100) Subject: check_GNU_style_lib: skip .py files (one should use flake8). X-Git-Tag: basepoints/gcc-13~1577 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=68aa3c08ef1c33d9ad1263f4b939638920de9f11;p=thirdparty%2Fgcc.git check_GNU_style_lib: skip .py files (one should use flake8). contrib/ChangeLog: * check_GNU_style_lib.py: Skip Python files. --- diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py index ac3682fb2aff..b5ab67ed2854 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: