mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2025-08-14 17:31:28 +08:00
Fix pylint.
This commit is contained in:
@ -10,9 +10,9 @@ def validate_files(argv):
|
||||
retcode = 0
|
||||
for filename in argv:
|
||||
if (
|
||||
not filename.endswith('_test.py') and
|
||||
not filename.endswith('__init__.py') and
|
||||
not filename.endswith('/conftest.py')
|
||||
not filename.endswith('_test.py') and
|
||||
not filename.endswith('__init__.py') and
|
||||
not filename.endswith('/conftest.py')
|
||||
):
|
||||
retcode = 1
|
||||
print('{0} does not end in _test.py'.format(filename))
|
||||
|
Reference in New Issue
Block a user