increase coverage precision

This commit is contained in:
sigma67 2024-01-11 21:00:54 +01:00
commit 06ff2b8377
No known key found for this signature in database
GPG key ID: 1C314227DF0103D0
2 changed files with 3 additions and 1 deletions

View file

@ -43,7 +43,6 @@ jobs:
cat <<< "$TEST_CFG" > tests/test.cfg
(echo "===== tests attempt: 1 ====" && pdm run pytest) || \
(echo "===== tests attempt: 2 ====" && pdm run pytest)
pdm run pytest
pdm run coverage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

View file

@ -48,6 +48,9 @@ addopts = "--verbose --cov"
[tool.coverage.run]
source = ["ytmusicapi"]
[tool.coverage.report]
precision = 2
[tool.ruff]
line-length = 110
ignore = [ "F403", "F405", "F821", "E731" ]