mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Python: flake8] Update the utils/python_lint.py script to fail with a non-zero exit code if flake8 and flake8-import-order are not installed.
This commit is contained in:
@@ -84,7 +84,7 @@ def lint(args, verbose=False):
|
||||
if verbose:
|
||||
print(_INSTALL_FLAKE8_MESSAGE)
|
||||
|
||||
return 0
|
||||
return 1
|
||||
|
||||
return subprocess.call(
|
||||
[sys.executable, '-m', 'flake8'] + args,
|
||||
|
||||
Reference in New Issue
Block a user