mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-03 07:00:27 +08:00
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:
parent
0bd247bbbe
commit
68aa3c08ef
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user