diff --git a/pyproject.toml b/pyproject.toml index e3c5592fe..673dfb2e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -160,21 +160,3 @@ flake8-black = ["-BLK901"] [build-system] requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" - -[tool.tox] -# see: https://tox.wiki/en/latest/example/basic.html -legacy_tox_ini = """ -[tox] -envlist = py -isolated_build = True - -[testenv] -deps = - pytest >= 6.2 - pytest-bdd >=4.0.1,<6.0 - pytest-xdist >=2.5.0 - toml >=0.10 - -commands = pytest {posargs} -passenv = HOME -""" diff --git a/tox.ini b/tox.ini new file mode 100644 index 000000000..4f8561195 --- /dev/null +++ b/tox.ini @@ -0,0 +1,19 @@ +# We would prefer to use pyproject.toml to configure +# tox, but it's not properly supported, yet. Check +# back on this once tox v4 is out. +# see: https://github.com/tox-dev/tox/issues/999 +# see: https://github.com/tox-dev/tox/issues/814 +# see: https://tox.wiki/en/latest/example/basic.html +[tox] +envlist = py +isolated_build = True + +[testenv] +deps = + pytest >= 6.2 + pytest-bdd >=4.0.1,<6.0 + pytest-xdist >=2.5.0 + toml >=0.10 + +commands = pytest {posargs} +passenv = HOME