Skip to content

Commit

Permalink
Fail under 100, ignore __main__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pquentin committed Oct 6, 2024
1 parent 2e6a1b7 commit d2db526
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
# Report again and fail if under 100%.
python -Im coverage report --fail-under=99
python -Im coverage report --fail-under=100
- name: Upload HTML report if check failed
uses: actions/upload-artifact@v4
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ warn_unused_configs = true
warn_unused_ignores = true

[tool.coverage.run]
branch = true
omit = ["*/setup.py"]
omit = ["src/trustme/__main__.py"]
source = ["trustme"]

[tool.coverage.paths]
Expand Down

0 comments on commit d2db526

Please sign in to comment.