From a6fe4222012e990042c86cdaaa904a8d059752ee Mon Sep 17 00:00:00 2001 From: Felipe Peter Date: Tue, 5 Apr 2022 11:33:19 +0200 Subject: [PATCH] Move tool configs to pyproject.toml (#588) --- pyproject.toml | 8 ++++++++ tox.ini | 10 +--------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 7fc3e2e..8992803 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,3 +12,11 @@ line_length = 79 ignore_missing_imports = true strict_optional = true disallow_incomplete_defs = true + +[tool.pytest.ini_options] +norecursedirs = ["docs", ".tox"] +addopts = """ + -vv + -rw + --cache-clear + """ diff --git a/tox.ini b/tox.ini index d557f66..048ac44 100644 --- a/tox.ini +++ b/tox.ini @@ -15,7 +15,7 @@ setenv = LANG=en_US.UTF-8 # To pass arguments to pytest, use `tox [options] -- [pytest posargs]`. commands = - pytest --cache-clear -vv src/tests {posargs} + pytest src/tests {posargs} mypy src/ black --check src/pydocstyle isort --check src/pydocstyle @@ -65,11 +65,3 @@ commands = {[testenv:install]commands} skip_install = {[testenv:install]skip_install} commands = {[testenv:install]commands} -[pytest] -norecursedirs = docs .tox -addopts = -rw - -[pep257] -inherit = false -convention = pep257 -add-select = D404