https://github.com/entorb/template-python
https://github.com/entorb/template-python
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/entorb/template-python
- Owner: entorb
- License: gpl-3.0
- Created: 2024-12-26T22:24:24.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-14T05:58:42.000Z (12 months ago)
- Last Synced: 2025-07-14T07:50:58.418Z (12 months ago)
- Language: Python
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Torben's Python Template
Based on
## UV package manager
TODO: how to update all packages
```sh
uv lock --upgrade-package pytest
# uv lock --upgrade
uv sync
```
## Unit Tests
```sh
# for console output
pytest --cov
# for html output in htmlcov/ dir
pytest --cov --cov-report=html
```
## SonarQube Code Analysis
At [sonarcloud.io](https://sonarcloud.io/summary/overall?id=entorb_template-python&branch=main)
### Using GitHub Action to scan and provide unit test coverage report
* disable the "Automatic Analysis" at
* setup SonarSource/sonarqube-scan-action@v5 in [check.yml](.github/workflows/check.yml)
* rename [.sonarcloud.properties](.sonarcloud.properties) to [sonar-project.properties](sonar-project.properties)
* generate a token at
* add this token as secret SONAR_TOKEN in GitHub