diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index afa8b0095..58caba261 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -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. diff --git a/pyproject.toml b/pyproject.toml index 9f725d14f..5cb011711 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", ]