Verified Commit 90786e7e authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

chore(pyproject.toml): move pytest.ini options to pyproject.toml

parent 3ce3906e
Loading
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -22,6 +22,13 @@ ignore = [
[tool.ruff.lint.mccabe]
max-complexity = 10

[tool.pytest.ini_options]
# This is coming from https://github.com/pytest-dev/pytest-xdist/issues/825 and it's caused from pytest-cov
# Remove once fixed: https://github.com/pytest-dev/pytest-cov/issues/557
filterwarnings = ['ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning']
addopts = '--cov=aurweb --cov-append --dist load --dist loadfile -n auto'
testpaths = ['test']

[tool.mypy]
follow_imports = 'silent'  # https://github.com/python-lsp/pylsp-mypy/issues/81
scripts_are_modules = true  # allow checking all scripts in one invocation

pytest.ini

deleted100644 → 0
+0 −11
Original line number Diff line number Diff line
[pytest]
filterwarnings =
    # This is coming from https://github.com/pytest-dev/pytest-xdist/issues/825 and it's caused from pytest-cov
    # Remove once fixed: https://github.com/pytest-dev/pytest-cov/issues/557
    ignore:The --rsyncdir command line argument and rsyncdirs config variable are deprecated.:DeprecationWarning

# Build in coverage and pytest-xdist multiproc testing.
addopts = --cov=aurweb --cov-append --dist load --dist loadfile -n auto

# Our pytest units are located in the ./test/ directory.
testpaths = test