Based on https://github.com/entorb/pre-commit-config
TODO: how to update all packages
uv lock --upgrade-package pytest
# uv lock --upgrade
uv sync
# for console output
pytest --cov
# for html output in htmlcov/ dir
pytest --cov --cov-report=html
Report is here: https://sonarcloud.io/project/overview?id=entorb_template-python
- disable the "Automatic Analysis" at https://sonarcloud.io/project/analysis_method?id=entorb_template-python
- setup SonarSource/sonarqube-scan-action@v5 in check.yml
- rename .sonarcloud.properties to sonar-project.properties
- generate a token at https://sonarcloud.io/account/security
- add this token as secret SONAR_TOKEN in GitHub