Skip to content

Commit cc37a76

Browse files
committed
Move pytest config to pyproject.toml.
1 parent db687ee commit cc37a76

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

pyproject.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,22 @@ profile = "black"
1111
py_version = "37"
1212
skip_gitignore = true
1313
line_length = 120
14+
15+
[tool.pytest.ini_options]
16+
minversion = "6.0"
17+
required_plugins = ["pytest-cov"]
18+
testpaths = ["tcod/", "tests/", "docs/"]
19+
addopts = [
20+
"--doctest-modules",
21+
"--doctest-glob='*.rst'",
22+
"--cov=tcod",
23+
"--capture=sys",
24+
"--ignore=tcod/__pyinstaller",
25+
]
26+
log_file_level = "DEBUG"
27+
faulthandler_timeout = 5
28+
filterwarnings = [
29+
"ignore::DeprecationWarning:tcod.libtcodpy",
30+
"ignore::PendingDeprecationWarning:tcod.libtcodpy",
31+
"ignore:This class may perform poorly and is no longer needed.::tcod.map",
32+
]

setup.cfg

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,6 @@ py-limited-api = cp36
88
[aliases]
99
test=pytest
1010

11-
[tool:pytest]
12-
addopts=
13-
tcod/
14-
tests/
15-
docs/
16-
--doctest-modules
17-
--doctest-glob="*.rst"
18-
--cov=tcod
19-
--capture=sys
20-
--ignore=tcod/__pyinstaller
21-
filterwarnings =
22-
ignore::DeprecationWarning:tcod.libtcodpy
23-
ignore::PendingDeprecationWarning:tcod.libtcodpy
24-
ignore:This class may perform poorly and is no longer needed.::tcod.map
25-
2611
[flake8]
2712
ignore = E203 W503
2813
max-line-length = 120

0 commit comments

Comments
 (0)