Introducing
The Slant team built an AI & it’s awesome
Find the best product instantly
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now
4.7 star rating
0
Development
Programming
Python
Code Lint
Python Programming
What are the best Python code linters?
22
Options
Considered
196
User
Recs.
Jan 15, 2024
Last
Updated
Related Questions
Activity
Have feedback or ideas?
Join our community
on Discord
Ad
22
Options
Considered
Best Python code linters
Price
Initial Release
Python Versions Supported
89
Pylint
FREE
May 19, 2003
3.7.2+
73
Flake8
FREE
February 15, 2010
3.6.1+
--
Pyright
FREE
March 10, 2019
3.7+
--
Black
FREE
March 11, 2018
3.6+
--
mypy
FREE
October 28, 2012
3.6+
See Full List
89
Pylint
My Rec
ommendation
for
Pylint
My Recommendation for
Pylint
All
9
Experiences
1
Pros
5
Cons
2
Specs
Top
Pro
•••
Full, detailed reports
Pylint gives very detailed reports of your code. It even provides ASCII tables with detailed statistics about the results. Data for the previous and current code execution is also available with the difference, allowing you to easily see the progress that you have made.
See More
Top
Con
•••
Doesn't work well with decorated functions
Can produce false positive errors when accessing attributes of decorated functions, because Pylint mistakes them as regular functions despite the explicit decorators above function signatures.
See More
AffableGenann's Experience
Fast enough for real-time IDE integration even with large files.
See More
Specs
Initial Release:
May 19, 2003
Python Versions Supported:
3.7.2+
Latest Release Date:
June 18, 2022
Analysis Type:
Static
See All Specs
Top
Pro
•••
Great documentation
The documentation is thorough and complete. They provide information for any kind of warning that Pylint may raise and how to deal with them, enable/disable them and how to interpret them.
See More
Top
Con
•••
May need to compile from source to install it correctly
There are some dependencies from Logilab that Pylint needs. They can easily be found in the README but trying to install them with easy_install can yield some problems with unresolved dependencies.
See More
Top
Pro
•••
Fine-grained control
In addition to the ability to enable or disable warnings, Pylint also gives the developer a great degree of control through command line options. These range from regular expressions to enforce naming conventions to various settings to watch for complexity issues.
See More
Top
Pro
•••
Configurable
Pylint has a configuration file which can be tweaked to choose what kind of warning messages you want. This way you can choose to opt out of receiving warnings that you may consider useless.
See More
Top
Pro
•••
Easily enable or disable a particular message
Each check in pylint has a unique id, so you can choose to disable or enable that particular message in subsequent executions. Just run -enable-msg or -disable-msg and the message id.
See More
Hide
See All
FREE
Recommend
89
6
73
Flake8
My Rec
ommendation
for
Flake8
My Recommendation for
Flake8
All
9
Experiences
1
Pros
5
Cons
2
Specs
Top
Pro
•••
Great for beginners
Easy to setup and use for beginners, since it gives few false positives.
See More
Top
Con
•••
Is not supported on pyCharm (who gives a FUCK)
There is no integration with pyCharm
See More
zgoda's Experience
Plenty of plugins to extend basic functionality, simple configuration that can be done in both config files and in command line.
See More
Specs
Initial Release:
February 15, 2010
Latest Release Date:
October 11, 2021
Python Versions Supported:
3.6.1+
Analysis Type:
Static
See All Specs
Top
Pro
•••
Can ignore specific errors on specific lines
The # noqa: comment allows you to ignore a warning for just a single line.
See More
Top
Con
•••
Underlying tools are fixed
Although Flake8 wraps multiple tools, it is not flexible in which tools it wraps. If you don't agree with the rules implemented in PyFlakes and pep8, then you have to drop all 3 wrapped tools to use something else like PyLint.
See More
Top
Pro
•••
One-stop-shop static diagnostics
Gives you static syntax checking, pep8 compliance and code complexity with a single invocation.
See More
Top
Pro
•••
Allows usage of and writing of plugins
Flake8 has the ability to run thrid-party plugins, including plugins you can write yourself. Here you can find a few useful plugins.
See More
Top
Pro
•••
Wraps multiple analysis tools
Flake8 is a wrapper around PyFlakes, pep8, and McCabe Complexity analysis.
See More
Hide
See All
FREE
Recommend
41
8
--
Pyright
My Rec
ommendation
for
Pyright
My Recommendation for
Pyright
All
4
Pros
3
Specs
Top
Pro
•••
Does fast, asynchronous type checking
See More
Specs
Initial Release:
March 10, 2019
Latest Release Date:
June 20, 2022
Python Versions Supported:
3.7+
Analysis Type:
Static
Top
Pro
•••
Available in any text editor that implements Microsoft's Language Server Protocol
See More
Top
Pro
•••
Made by Microsoft
They wouldn't make a tool unless they saw a need for it and they have a lot of code to test it against. It also forces them to be mindful of its performance and the time costs associated with using it.
See More
Hide
See All
FREE
Recommend
9
--
Black
My Rec
ommendation
for
Black
My Recommendation for
Black
All
6
Experiences
2
Pros
2
Cons
1
Specs
Top
Pro
•••
Consistency among the codebase
It helps new hires and team member code readability as code is often read than being wrote. The consistency make it easier to ready code across the codebase.
See More
Top
Con
•••
Can't use single quotes
See More
PoisedPepromene's Experience
It changes the code automatically. It also does the linting in a wrong fashion, exactly against the rules stated in the PEP8/257!
See More
Specs
Initial Release:
March 11, 2018
Python Versions Supported:
3.6+
Latest Release Date:
March 28, 2022
Analysis Type:
Static
See All Specs
Top
Pro
•••
Less time spent formatting code
This reduces cognitive load and allows you to focus on code behavior.
See More
UnderstandingAhBolomTzacab's Experience
Great autoformatting tool where you focus more on writing code rather than fixing the formatting issue.
See More
Hide
See All
FREE
Recommend
11
4
--
mypy
My Rec
ommendation
for
mypy
My Recommendation for
mypy
All
1
Specs
Specs
Initial Release:
October 28, 2012
Python Versions Supported:
3.6+
Latest Release Date:
June 6, 2022
Analysis Type:
Hybrid
Hide
FREE
Recommend
6
1
--
Pylama
My Rec
ommendation
for
Pylama
My Recommendation for
Pylama
All
1
Specs
Specs
Initial Release:
August 12, 2012
Latest Release Date:
March 11, 2022
Python Versions Supported:
3.7+
Analysis Type:
Static
Hide
FREE
Recommend
8
--
pyflakes
My Rec
ommendation
for
pyflakes
My Recommendation for
pyflakes
All
4
Pros
3
Specs
Top
Pro
•••
Integration with *Spyder* & *PyDev*
It uses Static code analysis, hence can be used to analyze code as you type.
See More
Specs
Initial Release:
September 23, 2005
Python Versions Supported:
2.7 / 3.6+
Latest Release Date:
October 6, 2021
Top
Pro
•••
Easy installation
The installation process for pyflakes is as easy as it can be. Can be installed with easy_install or pip and you are ready to go.
See More
Top
Pro
•••
Very fast
Because it looks for errors from a small group of possible mistakes, pyflakes is very fast. When dealing with many lines of code this is a very useful feature. When used in conjunction with an IDE, it checks the code as it's being edited.
See More
Hide
See All
FREE
Recommend
3
1
--
PyChecker
My Rec
ommendation
for
PyChecker
My Recommendation for
PyChecker
All
2
Cons
1
Specs
Top
Con
•••
Executes code being checked
Claimed here.
See More
Specs
Initial Release:
April 8, 2001
Latest Release Date:
January 8, 2011
Python Versions Supported:
2.0+
Hide
FREE
Recommend
1
--
pycodestyle
My Rec
ommendation
for
pycodestyle
My Recommendation for
pycodestyle
All
1
Specs
Specs
Initial Release:
April 6, 2012
Python Versions Supported:
2.7 / 3.5+
Latest Release Date:
October 10, 2021
Hide
FREE
Recommend
5
--
pylava
My Rec
ommendation
for
pylava
My Recommendation for
pylava
All
1
Specs
Specs
Initial Release:
September 13, 2017
Latest Release Date:
September 28, 2020
Python Versions Supported:
2.7 / 3.5+
Hide
Free
Recommend
1
--
AutoPep8
My Rec
ommendation
for
AutoPep8
My Recommendation for
AutoPep8
All
2
Pros
1
Specs
Top
Pro
•••
Recursive
See More
Specs
Initial Release:
January 2, 2011
Latest Release Date:
October 23, 2021
Python Versions Supported:
2.7 / 3.6+
Hide
FREE
Recommend
--
Radon
My Rec
ommendation
for
Radon
My Recommendation for
Radon
All
1
Specs
Specs
Initial Release:
September 14, 2012
Python Versions Supported:
2.7 / 3.6+
Latest Release Date:
August 8, 2021
Hide
FREE
Recommend
--
eradicate
My Rec
ommendation
for
eradicate
My Recommendation for
eradicate
All
1
Specs
Specs
Initial Release:
December 22, 2012
Python Versions Supported:
2.7 / 3+
Latest Release Date:
April 6, 2022
Hide
FREE
Recommend
--
McCabe
My Rec
ommendation
for
McCabe
My Recommendation for
McCabe
All
1
Specs
Specs
Initial Release:
February 11, 2013
Python Versions Supported:
3.6+
Latest Release Date:
January 23, 2022
Hide
FREE
Recommend
--
Bandit
My Rec
ommendation
for
Bandit
My Recommendation for
Bandit
All
1
Specs
Specs
Initial Release:
March 23, 2015
Latest Release Date:
March 3, 2022
Python Versions Supported:
3.7+
Hide
FREE
Recommend
--
isort
My Rec
ommendation
for
isort
My Recommendation for
isort
All
1
Specs
Specs
Initial Release:
December 9, 2013
Latest Release Date:
November 8, 2021
Python Versions Supported:
3.6.2+
Hide
FREE
Recommend
--
Prospector
My Rec
ommendation
for
Prospector
My Recommendation for
Prospector
All
1
Specs
Specs
Initial Release:
October 25, 2013
Latest Release Date:
March 9, 2022
Python Versions Supported:
3.6.2+
Hide
FREE
Recommend
--
Vulture
My Rec
ommendation
for
Vulture
My Recommendation for
Vulture
All
1
Specs
Specs
Initial Release:
March 17, 2012
Python Versions Supported:
3.6+
Latest Release Date:
May 19, 2022
Hide
FREE
Recommend
--
Pyre
My Rec
ommendation
for
Pyre
My Recommendation for
Pyre
All
2
Pros
1
Specs
Top
Pro
•••
Made by Facebook
Backed by a highly skilled development team and held to a high standard for use on large codebases.
See More
Specs
Initial Release:
May 14, 2018
Python Versions Supported:
3.6+
Latest Release Date:
April 22, 2022
Hide
FREE
Recommend
--
coala
My Rec
ommendation
for
coala
My Recommendation for
coala
Hide
FREE
Recommend
Don't see your favorite option? Add it.
Built By the Slant team
Find the best product instantly.
4.7 star rating
Add to Chrome
Add to Edge
Add to Firefox
Add to Opera
Add to Brave
Add to Safari
Try it now - it's free
One sec!
Are you sure that you want to abandon your hard work?
Delete Work
Continue working
{}
undefined
url next
price drop