Skip to content

Commit 85a9cbc

Browse files
authored
Use strict-no-cover to check coverage (#1677)
1 parent 7364f00 commit 85a9cbc

File tree

5 files changed

+2051
-2153
lines changed

5 files changed

+2051
-2153
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ jobs:
223223

224224
- run: uv run coverage report --fail-under 95
225225
- run: uv run diff-cover coverage.xml --fail-under 100
226-
- run: uv run tests/wrong_coverage.py
226+
- run: uv run strict-no-cover
227227

228228
test-mcp-run-python:
229229
runs-on: ubuntu-latest

pydantic_ai_slim/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ dev = [
8787
"pytest-recording>=0.13.2",
8888
"diff-cover>=9.2.0",
8989
"boto3-stubs[bedrock-runtime]",
90+
"strict-no-cover>=0.1.1",
9091
]
9192

9293
[tool.hatch.metadata]

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,9 @@ show_missing = true
215215
ignore_errors = true
216216
precision = 2
217217
exclude_lines = [
218-
# `# pragma: no cover` si standard marker for code that's not covered, this will error if code is covered
218+
# `# pragma: no cover` is standard marker for code that's not covered, this will error if code is covered
219219
'pragma: no cover',
220-
# use `# pragma: lax no cover` if you want to ignore covered and ignore cases where (some of) the code is covered
220+
# use `# pragma: lax no cover` if you want to ignore cases where (some of) the code is covered
221221
'pragma: lax no cover',
222222
'raise NotImplementedError',
223223
'if TYPE_CHECKING:',

tests/wrong_coverage.py

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)