Skip to content

Commit

Permalink
chore: update coverage config and move it to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jstucke committed Nov 12, 2024
1 parent 58fe736 commit 2f1be68
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

17 changes: 17 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,20 @@ docstring-quotes = "double"

[tool.ruff.format]
quote-style = "single"

[tool.coverage.run]
omit = [
# ignore install scripts
"src/install/*",
"src/install.py",
# ignore alembic migration scripts
"src/storage/migration/*",
]

[tool.coverage.report]
exclude_also = [
# exclude type checking blocks which are not executed during runtime
"if TYPE_CHECKING:",
# also don't complain about abstract methods (as they're also not run)
"@(abc\\.)?abstractmethod",
]

0 comments on commit 2f1be68

Please sign in to comment.