Have a look at more Python static analysis tools #28
leandro-lucarella-frequenz
started this conversation in
Ideas
Replies: 1 comment
-
A nice summary of many linters and checking tools (including code complexity): https://inventwithpython.com/blog/2022/11/19/python-linter-comparison-2022-pylint-vs-pyflakes-vs-flake8-vs-autopep8-vs-bandit-vs-prospector-vs-pylama-vs-pyroma-vs-black-vs-mypy-vs-radon-vs-mccabe/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lint: We are currently using
pylint
, but there is also the very popularflake8
. We should see if it makes sense to switch or even use both. Some comparison.Recently @shsms discovered ruff too. Ruff seems to be mainly a replacement for
flake8
, not so much for pylint now. There seems to be able to replace or at least take on some docs checks fromdarglint
, which is currently archived (abandoned).Automatic upgrading:
pyupgrade
to upgrade to newer python syntax #30Add more security checks:
Dependency scanning:
We are currently using dependabot in some repos, but something that can be run in the console as a regular tool might be nice too, like
pip-audit
.Static analysis (Add vulnerabilities/security scanning #29):
License checks:
Beta Was this translation helpful? Give feedback.
All reactions