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 authored and maringuu committed Nov 14, 2024
1 parent 56ba201 commit ccee417
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .coveragerc

This file was deleted.

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

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

[tool.coverage.run]
omit = [
# ignore install scripts
"src/install.py",
"src/install/*",
# ignore alembic migration scripts
"src/storage/migration/**",
# ignore files only run inside docker
"src/plugins/analysis/*/docker/**",
]

[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 ccee417

Please sign in to comment.