From 6443d37c97580f14f0ca0db896e69ab93eadd2e7 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Thu, 16 Feb 2023 16:47:01 +0100 Subject: [PATCH] Move pytest config to pyproject.toml --- pyproject.toml | 11 +++++++++++ setup.cfg | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f4ccb24..d4d310d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,3 +14,14 @@ target-version = "py37" [tool.ruff.isort] force-single-line = true + +[tool.pytest.ini_options] +addopts = """ +--tb=short +--cov-config .coveragerc +--cov=vdirsyncer +--cov-report=term-missing:skip-covered +--no-cov-on-fail +--color=yes +""" +# filterwarnings=error diff --git a/setup.cfg b/setup.cfg index 642d06f..5eb4267 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,13 +1,3 @@ -[tool:pytest] -addopts = - --tb=short - --cov-config .coveragerc - --cov=vdirsyncer - --cov-report=term-missing:skip-covered - --no-cov-on-fail - --color=yes -# filterwarnings=error - [mypy] ignore_missing_imports = True # See https://github.com/python/mypy/issues/7511: