Parcourir la source

require coverage[toml] to support pyproject.toml on Python < 3.11

Thomas Waldmann il y a 1 semaine
Parent
commit
91c8054215
3 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 1 1
      pyproject.toml
  2. 1 0
      requirements.d/development.lock.txt
  3. 1 0
      requirements.d/development.txt

+ 1 - 1
pyproject.toml

@@ -212,7 +212,7 @@ commands = [["bandit", "-r", "src/borg", "-c", "pyproject.toml"]]
 [tool.coverage.run]
 [tool.coverage.run]
 branch = true
 branch = true
 disable_warnings = ["module-not-measured", "no-ctracer"]
 disable_warnings = ["module-not-measured", "no-ctracer"]
-source = "src/borg"
+source = ["src/borg"]
 omit = [
 omit = [
     "*/borg/__init__.py",
     "*/borg/__init__.py",
     "*/borg/__main__.py",
     "*/borg/__main__.py",

+ 1 - 0
requirements.d/development.lock.txt

@@ -8,6 +8,7 @@ pkgconfig==1.5.5
 tox==4.26.0
 tox==4.26.0
 pytest==8.4.0
 pytest==8.4.0
 pytest-xdist==3.7.0
 pytest-xdist==3.7.0
+coverage[toml]==7.9.1
 pytest-cov==6.2.1
 pytest-cov==6.2.1
 pytest-benchmark==5.1.0
 pytest-benchmark==5.1.0
 Cython==3.1.2
 Cython==3.1.2

+ 1 - 0
requirements.d/development.txt

@@ -8,6 +8,7 @@ pkgconfig
 tox
 tox
 pytest
 pytest
 pytest-xdist
 pytest-xdist
+coverage[toml]
 pytest-cov
 pytest-cov
 pytest-benchmark
 pytest-benchmark
 Cython
 Cython