]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
check_GNU_style_lib: skip .py files (one should use flake8).
authorMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 13:53:43 +0000 (14:53 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 19 Jan 2022 13:54:03 +0000 (14:54 +0100)
contrib/ChangeLog:

* check_GNU_style_lib.py: Skip Python files.

contrib/check_GNU_style_lib.py

index ac3682fb2aff1f375e4aabecf8cad21300c17e11..b5ab67ed28540237b745f516ef6c3ac65d840dec 100755 (executable)
@@ -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: