Skip to content

Commit 2ad70a2

Browse files
committed
fix: coverage correctly ignore ellipsis
1 parent dafdfe3 commit 2ad70a2

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ exclude_lines = [
8080
"except ImportError",
8181
"if TYPE_CHECKING:",
8282
"if app.debug",
83-
"...",
83+
"\\.\\.\\.",
8484
]
8585

8686
[tool.ruff.lint]

tests/test_utils.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,7 @@ def test_get_registered_tags():
274274
"""Test get_registered_tags function returns a copy of registered tags."""
275275

276276
@checker("test_tag1", "test_tag2")
277-
def dummy_check(context):
278-
pass
277+
def dummy_check(context): ...
279278

280279
tags = get_registered_tags()
281280
assert isinstance(tags, set)
@@ -391,8 +390,7 @@ def test_checker_skip_with_include_tags():
391390
"""Test checker skips execution when include_tags don't match."""
392391

393392
@checker("crud:write")
394-
def write_check(context):
395-
return [CheckResult(status=Status.SUCCESS)]
393+
def write_check(context): ...
396394

397395
conf = CheckConfig(include_tags={"crud:read", "schemas"})
398396
context = CheckContext(client=None, conf=conf)

0 commit comments

Comments
 (0)