From ef62e9a1a7a2ff0f7e2ff4fe5445593746f5f442 Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Mon, 4 Nov 2024 13:34:04 -0600 Subject: [PATCH] [REF] tox.ini: Add compatibility with new pyttest Related to code https://github.com/pytest-dev/pytest-cov/blob/95404375a0e436178e012e20b8865c23c54c8a50/src/pytest_cov/engine.py\#L251C25-L251C26 Related to issue https://github.com/pytest-dev/pytest-cov/issues/604 --- .coveragerc | 1 - pyproject.toml | 6 +++--- tox.ini | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.coveragerc b/.coveragerc index 23f1dc8..101bdf5 100644 --- a/.coveragerc +++ b/.coveragerc @@ -4,7 +4,6 @@ source = src [run] source = src parallel = true -dynamic_context = test_function context = ${{COVERAGE_CONTEXT}} [report] diff --git a/pyproject.toml b/pyproject.toml index 2c64420..275ee5b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ -[build-system] -requires = ["setuptools >=42"] -build-backend = "setuptools.build_meta" +[tool.black] +line-length=119 +skip-string-normalization=false diff --git a/tox.ini b/tox.ini index 59e6023..800252a 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,7 @@ passenv = deps = -r{toxinidir}/test-requirements.txt usedevelop = true commands = - pytest --cov-append -s --cov --cov-report=term-missing --cov-report=html -vv {posargs:} + pytest --cov-append -s --cov --cov-report=term-missing --cov-report=html --cov-context=test -vv {posargs:} [testenv:lint] # skip_install = true