Pylint: Difference between revisions

From Bradnor
Jump to navigation Jump to search
No edit summary
 
(No difference)

Latest revision as of 13:36, 16 October 2019

⇐ Python

pylint, a python code analyser

to run
python3 -m pylint <python.py file>
runs using Python v3
assumes there is a config file somewhere it knows. I suggest .pylintrc in current directory
configuration
create the .pylintrc file by running pylint --generate-rcfile
then edit. Useful additions I have found are
extension-pkg-whitelist=
to suppress error messages relating to non-system modules you can't edit, e.g. RPi,RPi.GPIO
disable=
add e.g. C0303 to list to suppress trailing-whitespace messages