vulture finds unused code in Python programs. It is useful for cleaning up and finding errors in large code bases.
Lint Python Scripts
ruff
ruff is an extremely fast Python linter, written in Rust.
pylint
flake8
-
Flake8
focus on logical errors rather than stylistic errors. It strives to reduce false positives. -
pylint
performs deeper analysis and thus is slower.
Formatting
The Python package black is the best formatting tool for Python currently.
Please refer to Auto formatters for Python for detailed comparison between yapf and black.
Debugging, Unit Testing and CICD
Reference
-
darglint checks that the docstring description matches the definition.
-
coala provides a unified command-line interface for linting and fixing all your code, regardless of the programming languages you use.
https://cjolowicz.github.io/posts/hypermodern-python-01-setup/
https://cjolowicz.github.io/posts/hypermodern-python-02-testing/
https://cjolowicz.github.io/posts/hypermodern-python-03-linting/#managing-dependencies-in-nox-sessions-with-poetry
https://cjolowicz.github.io/posts/hypermodern-python-02-testing/#code-coverage-with-coveragepy