forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pytest - only error on warnings from within libqtile
- Changes pytests warning filter (-W flag) to only error upon warnings that arise within libqtile. If they arise within our deps then we shouldn't error out. - Moves the warning filter config from the command line (in tox.ini) to the configuration in setup.cfg - re-instate warning filter for py310, which was temporarily disables due to an error in pygobject. It seems to only affect -W error globally on all warnings - migrates pytest config from setup.cfg to pyproject.toml per their docs
- Loading branch information
Showing
3 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
[tool.black] | ||
line-length = 98 | ||
exclude = 'libqtile/_ffi.*\.py|libqtile/backend/x11/_ffi.*\.py|test/configs/syntaxerr.py' | ||
|
||
[tool.pytest.ini_options] | ||
python_files = "test_*.py" | ||
testpaths = ["test"] | ||
filterwarnings = [ | ||
"error:::libqtile", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters