Skip to content

Commit

Permalink
Use covdefaults
Browse files Browse the repository at this point in the history
  • Loading branch information
atugushev authored and webknjaz committed May 9, 2023
1 parent 7aa22d4 commit 4101ac8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[run]
branch = True
source = .
plugins = covdefaults
omit =
piptools/_compat/*

[report]
include = piptools/*, tests/*
fail_under = 99
2 changes: 1 addition & 1 deletion piptools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ def cli() -> None:


# Enable ``python -m piptools ...``.
if __name__ == "__main__": # pragma: no branch
if __name__ == "__main__":
cli()
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ testing = [
"flit_core >=2,<4",
"poetry_core>=1.0.0",
]
coverage = ["pytest-cov"]
coverage = ["covdefaults", "pytest-cov"]

[project.scripts]
pip-compile = "piptools.scripts.compile:cli"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_cli_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2809,7 +2809,7 @@ def test_failure_of_legacy_resolver_prompts_for_backtracking(
assert "Consider using backtracking resolver with" in out.stderr
elif current_resolver == "backtracking":
assert out.exit_code == 0, out
else: # pragma: no cover
else:
raise AssertionError("unreachable")


Expand Down

0 comments on commit 4101ac8

Please sign in to comment.