Unit tests (#23)

* Added unit tests and linting tools for development

* Added pre-commit config file

* Added lint github action

* Add tests and coverage comments to PRs

* Set coverage options

* Fixed yaml

* Fixed permissions

* Omit tests in coverage report

* Run linting only on PRs
This commit is contained in:
Esteban Sánchez
2023-11-20 13:12:43 +01:00
committed by GitHub
parent 03a9ac78c6
commit 03e4222043
9 changed files with 345 additions and 15 deletions

View File

@@ -26,3 +26,11 @@ qbittorrent-exporter = "qbittorrent_exporter.exporter:main"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pdm.dev-dependencies]
dev = [
"pytest>=7.4.3",
"isort>=5.12.0",
"black>=23.11.0",
"coverage>=7.3.2",
]