Pylint
Jump to navigation
Jump to search
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
- python3 -m pylint <python.py file>
- 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
- extension-pkg-whitelist=