Pylint Explained
Pylint is a static code analysis tool for the Python programming language. It is named following a common convention in Python of a "py" prefix, and a nod to the C programming lint program. It follows the style recommended by PEP 8, the Python style guide.[3] It is similar to Pychecker and Pyflakes, but includes the following features:
- Checking the length of each line
- Checking that variable names are well-formed according to the project's coding standard
- Checking that declared interfaces are truly implemented.[4]
It is also equipped with the Pyreverse module that allows UML diagrams to be generated from Python code.
It can be used as a stand-alone program, but also integrates with IDEs such as Eclipse with PyDev,[5] Spyder and Visual Studio Code,[6] and editors such as Atom,[7] GNU Emacs and Vim.
It has received favourable reviews.[8] [9] [10]
Notes and References
- Web site: Pylint User Manual – Pylint 2.0.0 documentation . Docs.pylint.org . 2016-11-16.
- Web site: Episode 35 – Sylvain Thénault on ASTroid . Tobias Macey. pythonpodcast.com. 2015-12-12 . 2016-11-17.
- Web site: PEP 8 – Style Guide for Python Code . Python.org . 2016-11-16.
- Web site: pylint (analyzes Python source code looking for bugs and signs of poor quality) . Logilab.org . 2006-09-26 . 2016-11-16.
- Web site: PyLint . Pydev.org . 2016-10-31 . 2016-11-16.
- Web site: Python for VSCode – Visual Studio Marketplace . Marketplace.visualstudio.com . 2016-11-16.
- Web site: linter-pylint. 2016-11-17.
- Web site: José Castro . Review of Python Static Analysis Tools – Codacy | Blog . Blog.codacy.com . 8 January 2016. 2016-11-16. "Pylint is by far the best tool."
- Web site: PyLint: Analyzing Python Code | The Mouse Vs. The Python . Blog.pythonlibrary.org . 2012-06-12 . 2016-11-16. "pylint is probably the most popular".
- Web site: Write Clean, Professional, Maintainable, Quality Code in Python | PyCharm Blog . Blog.jetbrains.com . 2014-06-13 . 2016-11-16. "Pylint is still the definitive tool for Python code analysis".