Package: pylint-pa
What is Pylint?Pylint is astatic code analyserfor Python 2 or 3. The latest version supports Python
3.8.0 and above.Pylint analyses your code without actually running it. It checks for errors, enforces a
coding standard, looks forcode smells, and can make suggestions about how the code
could be refactored.InstallFor command line use, pylint is installed with:pip install pylintOr if you want to also check spelling withenchant(you might need toinstall the enchant C library):pipinstallpylint[spelling]It can also be integrated in most editors or IDEs. More information can be foundin the documentation.What differentiates Pylint?Pylint is not trusting your typing and is inferring the actual value of nodes (for a
start because there was no typing when pylint started off) using its internal code
representation (astroid). If your code isimport logging as argparse, Pylint
can check and know thatargparse.error(...)is in fact a logging call and not an
argparse call. This makes pylint slower, but it also lets pylint find more issues if
your code is not fully typed.[inference] is the killer feature that keeps us using [pylint] in our project despite how painfully slow it is.
-Realist pylint user, 2022pylint, not afraid of being a little slower than it already is, is also a lot more thorough than other linters.
There are more checks, including some opinionated ones that are deactivated by default
but can be enabled using configuration.How to use pylintPylint isn’t smarter than you: it may warn you about things that you have
conscientiously done or check for some things that you don’t care about.
During adoption, especially in a legacy project where pylint was never enforced,
it’s best to start with the--errors-onlyflag, then disable
convention and refactor messages with--disable=C,Rand progressively
re-evaluate and re-enable messages as your priorities evolve.Pylint is highly configurable and permits to write plugins in order to add your
own checks (for example, for internal libraries or an internal rule). Pylint also has an
ecosystem of existing plugins for popular frameworks and third-party libraries.NotePylint supports the Python standard library out of the box. Third-party
libraries are not always supported, so a plugin might be needed. A good place
to start isPyPIwhich often returns a plugin by searching forpylint <library>.pylint-pydantic,pylint-djangoandpylint-sonarjsonare examples of such plugins. More information about plugins
and how to load them can be found atplugins.Advised linters alongside pylintProjects that you might want to use alongside pylint includeruff(reallyfast,
with builtin auto-fix and a growing number of checks taken from popular
linters but implemented inrust) orflake8(faster and simpler checks with very few false positives),mypy,pyrightorpyre(typing checks),bandit(security oriented checks),blackandisort(auto-formatting),autoflake(automated removal of unused imports or variables),pyupgrade(automated upgrade to newer python syntax) andpydocstringformatter(automated pep257).Additional tools included in pylintPylint ships with two additional tools:pyreverse(standalone tool that generates package and class diagrams.)symilar(duplicate code finder that is also integrated in pylint)ContributingWe welcome all forms of contributions such as updates for documentation, new code, checking issues for duplicates or telling us
that we can close them, confirming that issues still exist,creating issues because
you found a bug or want a feature, etc. Everything is much appreciated!Please follow thecode of conductand checkthe Contributor Guidesif you want to
make a code contribution.Show your usageYou can place this badge in your README to let others know your project uses pylint.Learn how to add a badge to your documentation in thethe badge documentation.Licensepylint is, with a few exceptions listed below,GPLv2.The icon files are licensed under theCC BY-SA 4.0license:doc/logo.pngdoc/logo.svgSupportPlease checkthe contact information.Professional support for pylint is available as part of theTidelift
Subscription.  Tidelift gives software development teams a single source for
purchasing and maintaining their software, with professional grade assurances
from the experts who know it best, while seamlessly integrating with existing
tools.