check_GNU_style_lib: skip .py files (one should use flake8).

contrib/ChangeLog:

	* check_GNU_style_lib.py: Skip Python files.
This commit is contained in:
Martin Liska 2022-01-19 14:53:43 +01:00
parent 0bd247bbbe
commit 68aa3c08ef

View file

@ -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: