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