diff --git a/CHANGES b/CHANGES index 0b098ae09..a9ae114e7 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux +### Packaging + +- Move pytest configuration to `pyproject.toml` (#499) + ### Breaking changes - Python 3.7 Dropped (#497) diff --git a/pyproject.toml b/pyproject.toml index 4e6b2a02b..675b2e1af 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -153,6 +153,19 @@ combine-as-imports = true [tool.ruff.per-file-ignores] "*/__init__.py" = ["F401"] +[tool.pytest.ini_options] +addopts = "--tb=short --no-header --showlocals --doctest-docutils-modules --reruns 2 -p no:doctest" +doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE" +testpaths = [ + "src/libtmux", + "tests", + "docs", + "README.md", +] +filterwarnings = [ + "ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::", +] + [build-system] requires = ["poetry_core>=1.0.0"] build-backend = "poetry.core.masonry.api" diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index 9dfb6f4ed..000000000 --- a/setup.cfg +++ /dev/null @@ -1,10 +0,0 @@ -[tool:pytest] -filterwarnings = - ignore:The frontend.Option(Parser)? class.*:DeprecationWarning:: -addopts = --tb=short --no-header --showlocals --doctest-docutils-modules --reruns 2 -p no:doctest -doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE -testpaths = - src/libtmux - tests - docs - README.md