SaaSHub helps you find the best software and product alternatives Learn more →
Top 18 Python static-code-analysis Projects
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
Flake8
flake8 is a python tool that glues together pycodestyle, pyflakes, mccabe, and third-party plugins to check the style and quality of some python code.
-
betterscan-ce
Code Scanning/SAST/Static Analysis/Linting using many tools/Scanners + OpenAI GPT with One Report (Code, IaC) - Betterscan Community Edition (CE)
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
astroid
A common base representation of python source code for pylint and other projects (by pylint-dev)
-
tryceratops
A linter to prevent exception handling antipatterns in Python (limited only for those who like dinosaurs).
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
Bandit is a tool designed to find common security issues in Python code. It was developed by the OpenStack Security Project and is a great addition to any serious Python project.
A little introduction about pylint. Pylint is a static code analyzer, it analyses your code without actually running it. Pylint looks for potential errors, gives suggestions on coding standards that your code is not adhering to, potential places where refactoring might help, and also warnings about smelly code.
it's open source! check out https://github.com/google/pytype and https://github.com/google/pytype/blob/main/docs/developers/t... for more on the multi-file runner
Project mention: Show HN: Marimo – an open-source reactive notebook for Python | news.ycombinator.com | 2024-01-12You're probably referring to nbgather (https://github.com/microsoft/gather), which shipped with VSCode for a while.
nbgather used static slicing to get all the code necessary to reconstruct some cell. I actually worked with Andrew Head (original nbgather author) and Shreya Shankar to implement something similar in ipyflow (but with dynamic slicing and a not-as-nice interface): https://github.com/ipyflow/ipyflow?tab=readme-ov-file#state-...
I have no doubt something like this will make its way into marimo's roadmap at some point :)
Project mention: Ask HN: Anyone use a code to mindmap/flowchart tool? | news.ycombinator.com | 2024-02-24Are you looking for something like a call graph?
There's pyan3 [1] which although doesn't support python 3.7+, I've still had luck with v1.0.4 which works better for me than its most recent version with python 3.11, but there can be some weird issues though depending on your code style.
A quick search also turned up crabviz [2] which has support for more languages than just python.
[1] https://github.com/Technologicat/pyan
[2] https://github.com/chanhx/crabviz
Project mention: TorchFix – a linter for PyTorch-using code with autofix support | news.ycombinator.com | 2024-04-19
Project mention: Check out pynalyzer - easy to use meta static code analysis bundle | /r/learnpython | 2023-07-06Here are the links: pypi: https://pypi.org/project/pynalyzer/ github: https://github.com/Devourian/pynalyzer Feel free to ask anything about it here and / or report an issue on GitHub, if something doesn't seem to work :)
Python static-code-analysis related posts
-
W1203: logging-fstring-interpolation (Solved)
-
Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff
-
GitHub - ipyflow/ipyflow: A reactive Python kernel for Jupyter notebooks
-
IPython kernel alternatives
-
IPyflow: Reactive Python Notebooks in Jupyter(Lab)
-
IPyflow: Reactive Python Notebooks in Jupyter(Lab)
-
IPyflow: Reactive Python Notebooks in Jupyter(Lab)
-
A note from our sponsor - SaaSHub
www.saashub.com | 18 May 2024
Index
What are some of the best open-source static-code-analysis projects in Python? This list will help you:
Project | Stars | |
---|---|---|
1 | bandit | 6,035 |
2 | Pylint | 5,134 |
3 | pytype | 4,626 |
4 | Flake8 | 3,283 |
5 | pyt | 2,161 |
6 | ipyflow | 1,082 |
7 | betterscan-ce | 699 |
8 | PEP 8 Speaks | 605 |
9 | astroid | 511 |
10 | tryceratops | 421 |
11 | pyan | 313 |
12 | klara | 257 |
13 | wpbullet | 220 |
14 | pfun | 147 |
15 | flake8-bandit | 111 |
16 | torchfix | 60 |
17 | gct | 46 |
18 | pynalyzer | 2 |
Sponsored