📜  运行 flake8 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:06.453000             🧑  作者: Mango

代码示例1
#Install flake8
python -m pip install flake8

#Run flake8 lint check against file
flake8 path/to/code/to/check.py

#Run flake8 lint check for specific errors or warnings by their reference code
flake8 --select E123,W503 path/to/code/to/check.py

#Run flake8 lint check and ignore specific errors or warnings by their reference code
flake8 --ignore E24,W504 path/to/code/to/check.py