Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

run flake8

#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

Source by flake8.pycqa.org #
 
PREVIOUS NEXT
Tagged: #run
ADD COMMENT
Topic
Name
2+9 =