Configure testing with tox
The default tox.ini
tests many Python environments that aren't needed. Only py39
is really useful at this stage. The others can be deactivated.
I would add black
as an opiniated quality gate in testenv:check
deps =
black
commands =
black src --check
I would put Sonarqube back in:
[testenv:sonar]
basepython = python3
skip_install = true
whitelist_externals = sonar-scanner
deps =
pylint
commands =
sonar-scanner -Dsonar.login={env:SONAR_AUTH_TOKEN:}