Skip to content

Commit

Permalink
Update coverage to >=5.0.0 (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Aug 29, 2022
1 parent 1b836b7 commit 3223f8c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
9 changes: 0 additions & 9 deletions .coveragerc

This file was deleted.

3 changes: 1 addition & 2 deletions noxfile.py
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Expand Up @@ -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
Expand Down

0 comments on commit 3223f8c

Please sign in to comment.