mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
validate: pre commit hook: Do not try to run pep8 on non python files!
This commit is contained in:
parent
62bf27f5e3
commit
1753afbe8d
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ def main():
|
|||
|
||||
for modified_file in modified_files:
|
||||
try:
|
||||
if not modified_file.endswith(".py"):
|
||||
continue
|
||||
pep8_errors = system('pep8', '--repeat', '--ignore', 'E501,E128', modified_file)
|
||||
if pep8_errors:
|
||||
if output_message is None:
|
||||
|
|
Loading…
Reference in a new issue