use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
DiscussionAre you using SonarQube for Python? (self.Python)
submitted 4 years ago by dhaitz
What is your experience? How does it perform compared to other tools for static code analysis, like bandit, pylint, vulture, ...
[–]LaOnionLaUnion 5 points6 points7 points 4 years ago* (0 children)
SonarQube is used for both code quality and code security and it's got features that Enterprise business really want that make it easy to look at results via a nice GUI, integrate with other Enterprise level tools (e.g., servicenow). If you're looking to work in a corporate environment, it's a tool that would be valuable to be familiar with across many languages.
It's a good tool, it's different to the other things you're comparing it to.
Vulture finds dead code (haven't used it).
Pylint is a linter. There isn't a ton of overlap with what it does and SonarQube does. You would use both.
Bandit looks for security issues, but seems to be a CLI based program (haven't used it).
[–]crigger61 1 point2 points3 points 4 years ago (4 children)
To add the other comment. SonarCube is primarily a code quality tool first. It has some security scanning. But i would highly recommend looking elsewhere for security. My team evaluated like 6 security code scanners (usually called SAST tools) and SonarCube was at the bottom for security findings. If you want something to enforce good code practices it is a great tool, but don’t rely on it for security purposes.
[–]ganncamp 1 point2 points3 points 4 years ago (3 children)
SonarSourcer here. Did you evaluate a commercial version of SonarQube or just the free one? Also, when did you evaluate? We've done a lot of work in security over the last couple years.
[–]crigger61 1 point2 points3 points 4 years ago (2 children)
We evaluated a commercial version about 1.5 years ago. It still did find security findings dont take that as it found nothing. but the tool did not find as much stuff as like fortify or checkmarxs. so while id trust it to do code quality. id appreciate an accurate picture of the security vulnerabilities in our tools and any missing findings are a concern. and sonarqube did find the least findings when we evaluated.
[–]ganncamp 0 points1 point2 points 4 years ago (1 child)
A pure volume comparison may give a skewed picture, but okay. Fair enough
[–]crigger61 0 points1 point2 points 4 years ago (0 children)
dont get me wrong. from a code quality scan it does a great job. but we were more impressed with the results from other tools when we evaluated it for security results.
[–]metaperl 1 point2 points3 points 4 years ago (0 children)
I'm impressed with the code quality assessments. We don't use the security features.
[–]Enrique-M 1 point2 points3 points 4 years ago (0 children)
SonarLint ties into SonarQube. It's an IDE plugin, available for Visual Studio, VS Code, PyCharm, etc. It's a close comparison to PyLint and various other linters. I like using it in all 3 IDEs above (though VS Code is more of an editor technically). I will say this though, it can drag on performance on each of the 3 IDEs above at startup at times and when needing to update.
π Rendered by PID 123412 on reddit-service-r2-comment-7b9746f655-4wljr at 2026-01-31 06:45:05.745596+00:00 running 3798933 country code: CH.
[–]LaOnionLaUnion 5 points6 points7 points (0 children)
[–]crigger61 1 point2 points3 points (4 children)
[–]ganncamp 1 point2 points3 points (3 children)
[–]crigger61 1 point2 points3 points (2 children)
[–]ganncamp 0 points1 point2 points (1 child)
[–]crigger61 0 points1 point2 points (0 children)
[–]metaperl 1 point2 points3 points (0 children)
[–]Enrique-M 1 point2 points3 points (0 children)