mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +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:
|
for modified_file in modified_files:
|
||||||
try:
|
try:
|
||||||
|
if not modified_file.endswith(".py"):
|
||||||
|
continue
|
||||||
pep8_errors = system('pep8', '--repeat', '--ignore', 'E501,E128', modified_file)
|
pep8_errors = system('pep8', '--repeat', '--ignore', 'E501,E128', modified_file)
|
||||||
if pep8_errors:
|
if pep8_errors:
|
||||||
if output_message is None:
|
if output_message is None:
|
||||||
|
|
Loading…
Reference in a new issue