pylint 3.3.7


pip install pylint

  Latest version

Released: May 04, 2025


Meta
Author: Python Code Quality Authority
Requires Python: >=3.9.0

Classifiers

Development Status
  • 6 - Mature

Environment
  • Console

Intended Audience
  • Developers

Operating System
  • OS Independent

Programming Language
  • Python
  • Python :: 3 :: Only
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: Implementation :: CPython
  • Python :: Implementation :: PyPy

Topic
  • Software Development :: Debuggers
  • Software Development :: Quality Assurance
  • Software Development :: Testing

Typing
  • Typed
https://github.com/pylint-dev/pylint/actions/workflows/tests.yaml/badge.svg?branch=main https://codecov.io/gh/pylint-dev/pylint/branch/main/graph/badge.svg?token=ZETEzayrfk PyPI Package version Documentation Status https://img.shields.io/badge/code%20style-black-000000.svg https://img.shields.io/badge/linting-pylint-yellowgreen pre-commit.ci status CII Best Practices OpenSSF Scorecard Discord

What is Pylint?

Pylint is a static code analyser for Python 2 or 3. The latest version supports Python 3.9.0 and above.

Pylint analyses your code without actually running it. It checks for errors, enforces a coding standard, looks for code smells, and can make suggestions about how the code could be refactored.

Install

For command line use, pylint is installed with:

pip install pylint

Or if you want to also check spelling with enchant (you might need to install the enchant C library):

pip install pylint[spelling]

It can also be integrated in most editors or IDEs. More information can be found in the documentation.

What differentiates Pylint?

Pylint is not trusting your typing and is inferring the actual values of nodes (for a start because there was no typing when pylint started off) using its internal code representation (astroid). If your code is import logging as argparse, Pylint can check and know that argparse.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, 2022

pylint, 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 pylint

Pylint 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-only flag, then disable convention and refactor messages with --disable=C,R and 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.

Advised linters alongside pylint

Projects that you might want to use alongside pylint include ruff (really fast, with builtin auto-fix and a large number of checks taken from popular linters, but implemented in rust) or flake8 (a framework to implement your own checks in python using ast directly), mypy, pyright / pylance or pyre (typing checks), bandit (security oriented checks), black and isort (auto-formatting), autoflake (automated removal of unused imports or variables), pyupgrade (automated upgrade to newer python syntax) and pydocstringformatter (automated pep257).

Additional tools included in pylint

Pylint ships with two additional tools:

  • pyreverse (standalone tool that generates package and class diagrams.)

  • symilar (duplicate code finder that is also integrated in pylint)

Contributing

We 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 the code of conduct and check the Contributor Guides if you want to make a code contribution.

Show your usage

You can place this badge in your README to let others know your project uses pylint.

https://img.shields.io/badge/linting-pylint-yellowgreen

Learn how to add a badge to your documentation in the badge documentation.

License

pylint is, with a few exceptions listed below, GPLv2.

The icon files are licensed under the CC BY-SA 4.0 license:

Support

Please check the contact information.

Tidelift

Professional support for pylint is available as part of the Tidelift 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.

3.3.7 May 04, 2025
3.3.6 Mar 20, 2025
3.3.5 Mar 09, 2025
3.3.5a0 Mar 08, 2025
3.3.4 Jan 28, 2025
3.3.3 Dec 24, 2024
3.3.2 Dec 01, 2024
3.3.1 Sep 24, 2024
3.3.0 Sep 20, 2024
3.2.7 Aug 31, 2024
3.2.6 Jul 21, 2024
3.2.5 Jun 28, 2024
3.2.4 Jun 26, 2024
3.2.3 Jun 06, 2024
3.2.2 May 20, 2024
3.2.1 May 18, 2024
3.2.0 May 14, 2024
3.1.1 May 13, 2024
3.1.0 Feb 25, 2024
3.0.4 Feb 23, 2024
3.0.3 Dec 11, 2023
3.0.2 Oct 22, 2023
3.0.1 Oct 05, 2023
3.0.0 Oct 02, 2023
3.0.0b0 Sep 30, 2023
3.0.0a7 Aug 15, 2023
3.0.0a6 Apr 01, 2023
3.0.0a5 Jun 02, 2022
3.0.0a4 Jun 29, 2021
3.0.0a3 Apr 24, 2021
3.0.0a1 Mar 30, 2021
3.0.0a0 Mar 29, 2021
2.17.7 Sep 30, 2023
2.17.6 Sep 25, 2023
2.17.5 Jul 26, 2023
2.17.4 May 06, 2023
2.17.3 Apr 24, 2023
2.17.2 Apr 03, 2023
2.17.1 Mar 22, 2023
2.17.0 Mar 08, 2023
2.16.4 Mar 06, 2023
2.16.3 Mar 03, 2023
2.16.2 Feb 13, 2023
2.16.1 Feb 02, 2023
2.16.0 Feb 01, 2023
2.16.0b1 Jan 22, 2023
2.16.0b0 Jan 13, 2023
2.16.0.dev0 Sep 06, 2022
2.15.10 Jan 09, 2023
2.15.9 Dec 17, 2022
2.15.8 Dec 05, 2022
2.15.7 Nov 29, 2022
2.15.6 Nov 19, 2022
2.15.5 Oct 21, 2022
2.15.4 Oct 10, 2022
2.15.3 Sep 19, 2022
2.15.2 Sep 07, 2022
2.15.0 Aug 26, 2022
2.14.5 Jul 17, 2022
2.14.4 Jun 29, 2022
2.14.3 Jun 18, 2022
2.14.2 Jun 15, 2022
2.14.1 Jun 06, 2022
2.14.0 Jun 01, 2022
2.14.0b1 May 10, 2022
2.13.9 May 13, 2022
2.13.8 May 02, 2022
2.13.7 Apr 20, 2022
2.13.6 Apr 20, 2022
2.13.5 Apr 06, 2022
2.13.4 Mar 31, 2022
2.13.3 Mar 29, 2022
2.13.2 Mar 27, 2022
2.13.1 Mar 26, 2022
2.13.0 Mar 24, 2022
2.12.2 Dec 03, 2021
2.12.1 Nov 25, 2021
2.12.0 Nov 25, 2021
2.11.1 Sep 16, 2021
2.11.0 Sep 16, 2021
2.10.2 Aug 21, 2021
2.10.1 Aug 21, 2021
2.10.0 Aug 20, 2021
2.9.6 Jul 28, 2021
2.9.5 Jul 21, 2021
2.9.4 Jul 20, 2021
2.9.3 Jul 01, 2021
2.9.2 Jul 01, 2021
2.9.1 Jun 30, 2021
2.9.0 Jun 29, 2021
2.9.0.dev1 Jun 17, 2021
2.8.3 May 31, 2021
2.8.2 Apr 26, 2021
2.8.1 Apr 25, 2021
2.8.1.dev1 Apr 25, 2021
2.8.0 Apr 24, 2021
2.7.4 Mar 30, 2021
2.7.3 Mar 29, 2021
2.7.2 Feb 28, 2021
2.7.1 Feb 23, 2021
2.7.1.dev1 Feb 23, 2021
2.7.0 Feb 21, 2021
2.7.0.dev1 Feb 21, 2021
2.6.2 Feb 16, 2021
2.6.1 Feb 16, 2021
2.6.0 Aug 21, 2020
2.5.3 Jun 08, 2020
2.5.2 May 05, 2020
2.5.1 May 05, 2020
2.5.0 Apr 27, 2020
2.4.4 Nov 14, 2019
2.4.3 Oct 18, 2019
2.4.2 Sep 30, 2019
2.4.1 Sep 25, 2019
2.4.0 Sep 24, 2019
2.3.1 Mar 02, 2019
2.3.0 Feb 27, 2019
2.3.0.dev2 Feb 20, 2019
2.3.0.dev1 Jan 25, 2019
2.3.0.dev0 Jan 20, 2019
2.2.3 Mar 03, 2019
2.2.2 Nov 28, 2018
2.2.1 Nov 27, 2018
2.2.0 Nov 25, 2018
2.1.1 Aug 06, 2018
2.1.0 Aug 01, 2018
2.0.1 Jul 23, 2018
2.0.0 Jul 15, 2018
2.0.0.dev2 Jul 05, 2018
2.0.0.dev1 May 28, 2018
2.0.0.dev0 May 21, 2018
1.9.5 Jul 16, 2019
1.9.4 Dec 27, 2018
1.9.3 Jul 24, 2018
1.9.2 Jun 06, 2018
1.9.1 May 16, 2018
1.9.0 May 15, 2018
1.8.4 Apr 05, 2018
1.8.3 Mar 16, 2018
1.8.2 Jan 23, 2018
1.8.1 Dec 15, 2017
1.8.0 Dec 15, 2017
1.7.6 Mar 01, 2018
1.7.5 Dec 11, 2017
1.7.4 Sep 30, 2017
1.7.3 Sep 29, 2017
1.7.2 Jun 26, 2017
1.7.1 Apr 17, 2017
1.7.0 Apr 13, 2017
1.6.5 Jan 22, 2017
1.6.4 Jul 19, 2016
1.6.3 Jul 18, 2016
1.6.2 Jul 15, 2016
1.6.1 Jul 07, 2016
1.6.0 Jul 07, 2016
1.5.6 Jun 06, 2016
1.5.5 Mar 21, 2016
1.5.4 Jan 15, 2016
1.5.3 Jan 11, 2016
1.5.2 Dec 21, 2015
1.5.1 Dec 02, 2015
1.5.0 Nov 29, 2015
1.4.5 Dec 02, 2015
1.4.4 Jun 30, 2015
1.4.3 Mar 14, 2015
1.4.2 Mar 11, 2015
1.4.1 Jan 16, 2015
1.4.0 Nov 23, 2014
1.3.1 Aug 24, 2014
1.3.0 Jul 26, 2014
1.2.1 Apr 30, 2014
1.2.0 Apr 18, 2014
1.1.0 Dec 23, 2013
1.0.0 Aug 06, 2013
0.28.0 Apr 25, 2013
0.27.0 Mar 04, 2013
0.26.0 Oct 11, 2012
0.25.2 Jul 18, 2012
0.25.1 Dec 08, 2011
0.25.0 Oct 07, 2011
0.24.0 Jul 20, 2011
0.23.0 Jan 17, 2011
0.22.0 Nov 16, 2010
0.21.3 Sep 28, 2010
0.21.2 Aug 26, 2010
0.21.1 Jun 07, 2010
0.21.0 May 11, 2010
0.20.0 Mar 24, 2010
0.19.0 Dec 18, 2009
0.18.1 Aug 27, 2009
0.18.0 Mar 25, 2009
0.16.0 Jan 28, 2009
0.15.2 Jan 27, 2009

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
astroid (<=3.4.0.dev0,>=3.3.8)
colorama (>=0.4.5)
dill (>=0.2)
dill (>=0.3.6)
dill (>=0.3.7)
isort (!=5.13,<7,>=4.2.5)
mccabe (<0.8,>=0.6)
platformdirs (>=2.2)
tomli (>=1.1)
tomlkit (>=0.10.1)
typing-extensions (>=3.10)