From d2796d27c384d039ac85bc1536252656978ac2fc Mon Sep 17 00:00:00 2001 From: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com> Date: Wed, 2 Apr 2025 23:44:58 +0200 Subject: [PATCH] Move pytest settings to pyproject.toml --- .gitignore | 2 ++ pyproject.toml | 14 ++++++++++---- pytest.ini | 8 -------- 3 files changed, 12 insertions(+), 12 deletions(-) delete mode 100644 pytest.ini diff --git a/.gitignore b/.gitignore index 9a71bb71..81670fef 100644 --- a/.gitignore +++ b/.gitignore @@ -56,3 +56,5 @@ ToC.txt # Other /test.py +.config +.local diff --git a/pyproject.toml b/pyproject.toml index 9fefaa8d..d9aa3485 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 diff --git a/pytest.ini b/pytest.ini deleted file mode 100644 index dbc7a006..00000000 --- a/pytest.ini +++ /dev/null @@ -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