Syntax detection PyCharm configured to use flake8

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.
This link: https://blog.csdn.net/xsophiax/article/details/102548568

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.

Guess you like

Origin blog.csdn.net/xsophiax/article/details/102548568