Browse Source

Move pytest configuration from setup.cfg to pyproject.toml

Pytest documentation does not recommend to use setup.cfg as pytest
confguration - see warning here:

https://docs.pytest.org/en/6.2.x/customize.html#setup-cfg
pull/7066/head
Matus Valo 9 months ago committed by Asif Saif Uddin
parent
commit
6d4a6f355e
  1. 6
      pyproject.toml
  2. 6
      setup.cfg

6
pyproject.toml

@ -1 +1,5 @@
[tool.pytest.ini_options]
addopts = "--strict-markers"
testpaths = "t/unit/"
python_classes = "test_*"
xdfail_strict=true

6
setup.cfg

@ -1,9 +1,3 @@
[tool:pytest]
addopts = --strict-markers
testpaths = t/unit/
python_classes = test_*
xfail_strict=true
[build_sphinx]
source-dir = docs/
build-dir = docs/_build

Loading…
Cancel
Save