Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions {{cookiecutter.project_slug}}/conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

13 changes: 7 additions & 6 deletions {{cookiecutter.project_slug}}/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ target-version = ["py37", "py38", "py39"]
include = '\.pyi?$'

[tool.pytest.ini_options]
addopts = """\
--cov {{ cookiecutter.package_name }} \
--cov tests \
--cov-report term-missing \
--no-cov-on-fail \
"""
addopts = [
'--import-mode=importlib', # allow using test files with same name
'--cov={{ cookiecutter.package_name }}',
'--cov=tests',
'--cov-report=term-missing',
'--no-cov-on-fail',
]

[tool.coverage.report]
fail_under = 100
Expand Down
Empty file.