Skip to content

Commit 566690e

Browse files
authored
packaging(pytest): Move configuration to pyproject.toml (#499)
2 parents 3813c78 + d277b05 commit 566690e

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

CHANGES

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ $ pip install --user --upgrade --pre libtmux
1414

1515
<!-- Maintainers and contributors: Insert change notes for the next release above -->
1616

17+
### Packaging
18+
19+
- Move pytest configuration to `pyproject.toml` (#499)
20+
1721
### Breaking changes
1822

1923
- Python 3.7 Dropped (#497)

pyproject.toml

+13
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,19 @@ combine-as-imports = true
153153
[tool.ruff.per-file-ignores]
154154
"*/__init__.py" = ["F401"]
155155

156+
[tool.pytest.ini_options]
157+
addopts = "--tb=short --no-header --showlocals --doctest-docutils-modules --reruns 2 -p no:doctest"
158+
doctest_optionflags = "ELLIPSIS NORMALIZE_WHITESPACE"
159+
testpaths = [
160+
"src/libtmux",
161+
"tests",
162+
"docs",
163+
"README.md",
164+
]
165+
filterwarnings = [
166+
"ignore:The frontend.Option(Parser)? class.*:DeprecationWarning::",
167+
]
168+
156169
[build-system]
157170
requires = ["poetry_core>=1.0.0"]
158171
build-backend = "poetry.core.masonry.api"

setup.cfg

-10
This file was deleted.

0 commit comments

Comments
 (0)