8000 dev: set looponfailroots and filterwarnings · python-openxml/python-docx@e441969 · GitHub
[go: up one dir, main page]

Skip to content

Commit e441969

Browse files
committed
dev: set looponfailroots and filterwarnings
- Avoid rerunning tests when in "-f" follow mode every time Neovim updates the session file. - Suppress warnings related to "-f" flag deprecation but make all other warnings into errors.
1 parent 8995a40 commit e441969

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pyproject.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ Repository = "https://github.com/python-openxml/python-docx"
4242
target-version = ["py37", "py38", "py39", "py310", "py311"]
4343

4444
[tool.pytest.ini_options]
45+
filterwarnings = [
46+
# -- exit on any warning not explicitly ignored here --
47+
"error",
48+
49+
# -- pytest-xdist plugin may warn about `looponfailroots` deprecation --
50+
"ignore::DeprecationWarning:xdist",
51+
52+
# -- pytest complains when pytest-xdist is not installed --
53+
"ignore:Unknown config option. looponfailroots:pytest.PytestConfigWarning",
54+
]
55+
looponfailroots = ["src", "tests"]
4556
norecursedirs = [
4657
"doc",
4758
"docx",

0 commit comments

Comments
 (0)
0