Improve coding style
The Python code of this module should be made more readable. Following (best) practices would be helpful:
- Adapt PEP recommendations. Currently, only
pylint
is used to evaluate the coding style, but many more tools can be used:- pydocstringformatter: helps to automate string formatting, outputs a git diff
-
ruff: much faster than
pylint
, lists other improvements - black: another style formatter
- flake8: another style formatter
- isort: sorts imports
- Perform security checks:
- bandit: checks for common security vulnerabilities
- Perform type checking:
By adding some of the above tools to the CI pipeline on the next update of this module, we can achieve some quick wins.