Skip to content

Commit

Permalink
fix: Add coverage configuration to pyproject.toml (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
staticxterm authored Dec 17, 2024
1 parent e0c77cd commit 0b5c49f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
5 changes: 0 additions & 5 deletions beanie/pydantic_check.py

This file was deleted.

17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,24 @@ beanie = "beanie.executors.migrate:migrations"

# TOOLS

[tool.coverage.run]
branch = true
source = ["beanie"]

[tool.coverage.report]
ignore_errors = true
show_missing = true
fail_under = 80
exclude_lines = [
'pragma: no cover',
'if TYPE_CHECKING:',
'if typing.TYPE_CHECKING:',
'if __name__ == .__main__.:'
]

[tool.pytest.ini_options]
minversion = "8.0"
addopts = "--cov-report term-missing --cov=beanie --cov-branch --cov-fail-under=80"
addopts = "--cov"
testpaths = [
"tests",
]
Expand Down

0 comments on commit 0b5c49f

Please sign in to comment.