Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
1. Install Flake8
Must be installed in the console, is shown:
pip install flake8
2. Configure Pycharm
Program: $PyInterpreterDirectory$/python
arguments:-m flake8 --max-line-length=130 --exclude venv,migrations $ProjectFileDir$
working directory:$ProjectFileDir$
After the above steps, click on the menu tool to detect the current flake8 py a syntax error.