Skip to content

Commit 0281efc

Browse files
move pytest options to pyproject.toml
1 parent c1b622b commit 0281efc

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,21 @@ version = { attr = "_own_version_helper.version"}
113113
select = ["E", "F", "B", "U", "YTT", "C", "DTZ", "PYI", "PT"]
114114
ignore = ["B028"]
115115

116+
[tool.pytest.ini_options]
117+
testpaths = ["testing"]
118+
filterwarnings = [
119+
"error",
120+
"ignore:.*tool\\.setuptools_scm.*",
121+
"ignore:.*git archive did not support describe output.*:UserWarning",
122+
]
123+
log_level = "debug"
124+
log_cli_level = "info"
125+
# disable unraisable until investigated
126+
addopts = ["-p", "no:unraisableexception"]
127+
markers = [
128+
"issue(id): reference to github issue",
129+
"skip_commit: allows to skip committing in the helpers",
130+
]
131+
116132
[tool.scriv]
117133
format = "md"

tox.ini

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
[tox]
22
envlist=py{38,39,310,311},check_readme,check-dist
3-
4-
[pytest]
5-
testpaths=testing
6-
filterwarnings=
7-
error
8-
ignore:.*tool\.setuptools_scm.*
9-
ignore:.*git archive did not support describe output.*:UserWarning
10-
log_level = debug
11-
log_cli_level = info
12-
markers=
13-
issue(id): reference to github issue
14-
skip_commit: allows to skip committing in the helpers
15-
# disable unraisable until investigated
16-
addopts = -p no:unraisableexception
3+
requires= tox>4
174

185
[flake8]
196
max-complexity = 10

0 commit comments

Comments
 (0)