Running Pylint Against Your Code
Pylint is a best-practice analysis tool that is used to flag coding errors, including, but not limited to, false-positives, syntax errors, and style errors in Python. Pylint follows the style recommended by the Python style guide or PEP 8.
tip
Run through the steps in Setting Up a Dev Environment prior to modifying/testing code.
Visit here for an article on Linting Python in Visual Studio Code. The article provides information on the following Pylint topics:
- Enable linters
- Disable linting
- Run linting
- General linting settings
- Specific linters
- Pylint
- pydocstyle
- pycodestyle (pep8)
- Prospector
- Flake8
- mypy
- Troubleshooting linting
Manually Running PyLint
- Navigate to the task's base folder.
- Activate the virtual environment.
- Run Pylint and fix any discovered issues if you can.
pylint [file name]