Move pytest settings to pyproject.toml

This commit is contained in:
Veronica Berglyd Olsen
2025-04-02 23:44:58 +02:00
parent 89b3529554
commit d2796d27c3
3 changed files with 12 additions and 12 deletions
+2
View File
@@ -56,3 +56,5 @@ ToC.txt
# Other
/test.py
.config
.local
+10 -4
View File
@@ -61,10 +61,6 @@ ignore = ["E133", "E221", "E226", "E228", "E241", "W503", "ANN101", "ANN102", "A
per-file-ignores = ["tests/*:ANN"]
exclude = ["docs/*"]
[tool.autopep8]
max_line_length = 99
ignore = ["E133", "E221", "E226", "E228", "E241", "W503"]
[tool.pyright]
include = ["novelwriter"]
exclude = ["**/__pycache__"]
@@ -73,6 +69,16 @@ reportIncompatibleMethodOverride = false
pythonVersion = "3.10"
[tool.pytest.ini_options]
log_level = "DEBUG"
qt_api = "pyqt6"
markers = [
"base: Base classes tests",
"core: Core classes tests",
"gui: GUI classes tests",
"serial",
]
[tool.coverage.run]
branch = false
-8
View File
@@ -1,8 +0,0 @@
[pytest]
log_level = DEBUG
qt_api = pyqt6
markers =
base: Base classes tests
core: Core classes tests
gui: GUI classes tests
serial