-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
infra: refactor pytest configuration into the pyproject file
- Loading branch information
Coull
committed
Oct 23, 2024
1 parent
36e32f6
commit b9abb7e
Showing
5 changed files
with
108 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,23 @@ | ||
[tool.pytest.ini_options] | ||
xfail_strict = true | ||
# https://pytest-xdist.readthedocs.io/en/latest/known-limitations.html | ||
addopts = "--verbose -n logical --durations=0 --durations-min=1 --dist worksteal" | ||
testpaths = ["test/unit_tests",] | ||
# Issue #557 in `pytest-cov` (currently v4.x) has not moved for a while now, | ||
# but once a resolution has been adopted we can drop this "ignore". | ||
# Ref: https://github.com/pytest-dev/pytest-cov/issues/557 | ||
filterwarnings = [ | ||
"ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning", | ||
] | ||
norecursedirs = [ | ||
".tox", | ||
".git", | ||
"*/migrations/*", | ||
"*/static/*", | ||
"docs", | ||
"venv", | ||
"*/{{cookiecutter.project_slug}}/*", | ||
] | ||
|
||
[tool.black] | ||
line-length = 100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters