DCR - Developing - Static Code Analysis
The tools Bandit, Flake8, Mypy and Pylint are used for static code analysis:
- Bandit -
Banditis a tool designed to find common security issues inPythoncode. - Flake8 - A
Pythontool that glues togetherpycodestyle,Pyflakes,McCabe, and third-party plugins to check the style and quality of somePythoncode. - mypy - Optional static typing for
Python. - Pylint - It's not just a linter that annoys you!
All these tools are included in the call make lint as well as in the call make dev.
They can be executed individually with make bandit, make flake8, make mypy and make pylint.
Flake8 includes the following tools:
- McCabe - McCabe complexity checker for
Python. - pycodestyle - Simple
Pythonstyle checker in onePythonfile. - Pyflakes - A simple program which checks
Pythonsource files for errors. - Radon - Various code metrics for
Pythoncode.