Skip to content

Commit 1aa3f3a

Browse files
committed
Add pytest-cov as test dependency
1 parent de1e5ff commit 1aa3f3a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@ testpaths = ["tests"]
5252

5353
[tool.coverage.run]
5454
branch = true
55+
relative_files = true
5556
source = ["sonyflake_turbo"]
5657

58+
[tool.coverage.report]
59+
show_missing = true
60+
5761
[tool.isort]
5862
profile = "black"
5963

@@ -71,4 +75,4 @@ warn_unused_configs = true
7175

7276
[tool.cibuildwheel]
7377
test-command = "pytest --import-mode=importlib -p no:cacheprovider {project}/tests"
74-
test-requires = ["pytest", "pytest-asyncio", "pytest-trio"]
78+
test-requires = ["pytest", "pytest-cov", "pytest-asyncio", "pytest-trio"]

src/sonyflake_turbo/pure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
try:
66
from typing import Self
7-
except ImportError:
7+
except ImportError: # pragma: no cover
88
from typing_extensions import Self
99

1010

0 commit comments

Comments
 (0)