Skip to content

Commit

Permalink
Enforce 100% test coverage (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
arkid15r authored Dec 15, 2024
1 parent c2270ce commit 3a1481e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ from the `dev branch`_ to work on the latest code and reduce merging issues.
If you add/change holiday official dates or names your code must include references to
all sources (government sites, archived web pages, wiki pages, etc) you've used
while working on this PR. That could be done either as a ``References`` section update or
as a comment on the relevant part of the code. Contributed PRs_ are required to include valid test
as a comment on the relevant part of the code. Contributed PRs_ are required to include 100% test
coverage in order to be merged. Please don't hesitate to ask for help if you
need one with the tests.

Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ module = "holidays.groups.*"
disable_error_code = "attr-defined"

[tool.pytest.ini_options]
addopts = [
"--cov-fail-under=100",
]
filterwarnings = [
"ignore::DeprecationWarning:holidays.deprecations.v1_incompatibility",
]
Expand Down

0 comments on commit 3a1481e

Please sign in to comment.