Skip to content

Commit

Permalink
tests: use covdefaults
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Feb 17, 2024
1 parent 98a55ca commit e894c79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion nox/virtualenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def create(self) -> bool:
cmd = [sys.executable, "-m", "virtualenv", self.location]
if self.interpreter:
cmd.extend(["-p", self._resolved_interpreter])
elif self.venv_backend == "uv":
elif self.venv_backend == "uv": # pragma: >=3.8 cover
cmd = [
"uv",
"virtualenv",
Expand Down
5 changes: 1 addition & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,8 @@ log_cli_level = "info"
testpaths = [ "tests" ]

[tool.coverage.run]
branch = true
omit = [ "nox/_typing.py" ]

[tool.coverage.report]
exclude_lines = [ "pragma: no cover", "if TYPE_CHECKING:", "@overload" ]
plugins = [ "covdefaults" ]

[tool.mypy]
files = [ "nox/**/*.py", "noxfile.py" ]
Expand Down
1 change: 1 addition & 0 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
covdefaults
flask
myst-parser
pytest-cov
Expand Down

0 comments on commit e894c79

Please sign in to comment.