Python code specification detection tool pylint Flake8

1. pylint component
download
programming tool pycharm example
file–setting–project:–python interpreter–click the plus sign in the lower left corner–search–download
or pip install pylint
Insert picture description here
2. Set
file–setting–tools–external tools–plus sign and
set as follows
Insert picture description here

3.
Right-click the file directory and click as follows
Insert picture description here

Flake8 component download method is the same as the above
settingInsert picture description here


$PyInterpreterDirectory$/python

-m flake8 --statistics $ProjectFileDir$ --exclude$ProjectFileDir$/venv

$ProjectFileDir$

Guess you like

Origin blog.csdn.net/weixin_44887276/article/details/114674377
Recommended