From 0fa0a5c9cdacb39a3056fcafc353a341591118c2 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 7 Mar 2024 18:29:02 +0100 Subject: [PATCH] move tox.ini to pyproject.toml --- pyproject.toml | 32 ++++++++++++++++++++++++++++++++ tox.ini | 28 ---------------------------- 2 files changed, 32 insertions(+), 28 deletions(-) delete mode 100644 tox.ini diff --git a/pyproject.toml b/pyproject.toml index 6e463e925..df7f6624a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -156,3 +156,35 @@ unfixable = [] "src/moin/utils/SubProcess.py" = ["F401", "F821"] # 3rd party stuff, patched stdlib code "src/moin/config/default.py" = ["F401", "F403"] "src/moin/datastructures/__init__.py" = ["F401"] + +[tool.tox] +legacy_tox_ini = """ +# tox configuration - if you change anything here, run this to verify: +# tox --recreate + +# run like this: +# tox +# tox -e py39 +# tox -- -v -k test_wikiutil +# tox -- -v + +[tox] +envlist = py{39,310,311,312},ruff + +[testenv] +deps = -rrequirements.d/development.txt +setenv = + # some tests expect a specific order in dicts... + PYTHONHASHSEED = 0 + # needed so that lxml can build from source (e.g. on pypy): + CFLAGS = -I/usr/include/libxml2 +commands = pytest -rs --pyargs {posargs:moin} + +[testenv:ruff] +skip_sdist=true +skip_install=true +changedir = +deps = + ruff +commands = ruff check . +""" diff --git a/tox.ini b/tox.ini deleted file mode 100644 index 94d9e1667..000000000 --- a/tox.ini +++ /dev/null @@ -1,28 +0,0 @@ -# tox configuration - if you change anything here, run this to verify: -# tox --recreate - -# run like this: -# tox -# tox -e py39 -# tox -- -v -k test_wikiutil -# tox -- -v - -[tox] -envlist = py{39,310,311,312},ruff - -[testenv] -deps = -rrequirements.d/development.txt -setenv = - # some tests expect a specific order in dicts... - PYTHONHASHSEED = 0 - # needed so that lxml can build from source (e.g. on pypy): - CFLAGS = -I/usr/include/libxml2 -commands = pytest -rs --pyargs {posargs:moin} - -[testenv:ruff] -skip_sdist=true -skip_install=true -changedir = -deps = - ruff -commands = ruff check . \ No newline at end of file