Update coverage to `>=5.0.0` (#586)

pull/561/head
Matthieu Darbois 3 months ago committed by GitHub
parent 1b836b7029
commit 3223f8ca4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      .coveragerc
  2. 3
      noxfile.py
  3. 8
      pyproject.toml

@ -1,9 +0,0 @@
[run]
branch = True
omit = packaging/_compat.py
[report]
exclude_lines =
pragma: no cover
@abc.abstractmethod
@abc.abstractproperty

@ -26,8 +26,7 @@ def tests(session):
def coverage(*args):
session.run("python", "-m", "coverage", *args)
# Once coverage 5 is used then `.coverage` can move into `pyproject.toml`.
session.install("coverage<5.0.0", "pretend", "pytest>=6.2.0", "pip>=9.0.2")
session.install("coverage[toml]>=5.0.0", "pretend", "pytest>=6.2.0", "pip>=9.0.2")
session.install(".")
if "pypy" not in session.python:

@ -3,6 +3,14 @@ requires = ['setuptools >= 40.8.0', 'wheel']
build-backend = 'setuptools.build_meta'
[tool.coverage.run]
branch = true
omit = ["packaging/_compat.py"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "@abc.abstractmethod", "@abc.abstractproperty"]
[tool.mypy]
strict = true
show_error_codes = true

Loading…
Cancel
Save