Skip to content

Commit 75a6bd8

Browse files
authored
Merge pull request #207 from davidhewitt/pytest-options
pytest: add options to `pyproject.toml`
2 parents b75b2a4 + 09b166c commit 75a6bd8

File tree

5 files changed

+17
-1
lines changed

5 files changed

+17
-1
lines changed

examples/html-py-ever/tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ deps =
1010
beautifulsoup4
1111
pytest>=3.6
1212
commands = pytest {posargs}
13+
14+
[pytest]
15+
testpaths =
16+
test

examples/namespace_package/tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ deps =
99
pytest
1010
commands = pytest {posargs}
1111
passenv = *
12+
13+
[pytest]
14+
testpaths =
15+
tests

examples/rust_with_cffi/tox.ini

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ deps =
99
pytest
1010
cffi
1111
commands = pytest {posargs}
12+
13+
[pytest]
14+
testpaths =
15+
tests

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@ write_to = "setuptools_rust/version.py"
77

88
[tool.isort]
99
profile = "black"
10+
11+
[tool.pytest.ini_options]
12+
minversion = "6.0"
13+
addopts = "--doctest-modules"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ commands = mypy setuptools_rust {posargs}
1515
[testenv:pytest]
1616
deps =
1717
pytest
18-
commands = pytest --doctest-modules setuptools_rust {posargs}
18+
commands = pytest setuptools_rust {posargs}

0 commit comments

Comments
 (0)