From 91c8054215593763cdaf27473f5a92a91d685b32 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 14 Jun 2025 20:07:57 +0200 Subject: [PATCH] require coverage[toml] to support pyproject.toml on Python < 3.11 --- pyproject.toml | 2 +- requirements.d/development.lock.txt | 1 + requirements.d/development.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 136ebfe6d..4503ec1cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -212,7 +212,7 @@ commands = [["bandit", "-r", "src/borg", "-c", "pyproject.toml"]] [tool.coverage.run] branch = true disable_warnings = ["module-not-measured", "no-ctracer"] -source = "src/borg" +source = ["src/borg"] omit = [ "*/borg/__init__.py", "*/borg/__main__.py", diff --git a/requirements.d/development.lock.txt b/requirements.d/development.lock.txt index 832510985..fe384c1de 100644 --- a/requirements.d/development.lock.txt +++ b/requirements.d/development.lock.txt @@ -8,6 +8,7 @@ pkgconfig==1.5.5 tox==4.26.0 pytest==8.4.0 pytest-xdist==3.7.0 +coverage[toml]==7.9.1 pytest-cov==6.2.1 pytest-benchmark==5.1.0 Cython==3.1.2 diff --git a/requirements.d/development.txt b/requirements.d/development.txt index 10d7b55bf..1c2a409fd 100644 --- a/requirements.d/development.txt +++ b/requirements.d/development.txt @@ -8,6 +8,7 @@ pkgconfig tox pytest pytest-xdist +coverage[toml] pytest-cov pytest-benchmark Cython