mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Improve error messages in utils/python_lint.py
This commit is contained in:
@@ -23,8 +23,16 @@ def lint(arguments, verbose=True):
|
|||||||
)
|
)
|
||||||
if flake8_result != 0:
|
if flake8_result != 0:
|
||||||
if verbose:
|
if verbose:
|
||||||
print("Missing modules flake8 or flake8-import-order. Please be"
|
print("""
|
||||||
" sure to install these python packages before linting.")
|
The flake8 and flake8-import-order Python packages are required for linting,
|
||||||
|
but these were not found on your system.
|
||||||
|
|
||||||
|
You can install these using:
|
||||||
|
|
||||||
|
python -m pip install flake8
|
||||||
|
python -m pip install flake8-import-order
|
||||||
|
|
||||||
|
For more help, see http://flake8.pycqa.org.""")
|
||||||
return 0
|
return 0
|
||||||
|
|
||||||
utils_directory = os.path.dirname(os.path.abspath(__file__))
|
utils_directory = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|||||||
Reference in New Issue
Block a user