Skip to content

Commit 678caa9

Browse files
committed
Move coverage configuration to pyproject.toml
1 parent b84e376 commit 678caa9

2 files changed

Lines changed: 20 additions & 19 deletions

File tree

‎pyproject.toml‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,23 @@ ignore = [
8585
"RUF022", # `__all__` is not sorted
8686
"RUF023", # `SingleMatch.__slots__` is not sorted
8787
]
88+
89+
[tool.coverage.run]
90+
branch = true
91+
parallel = true
92+
concurrency = ["multiprocessing"]
93+
source_pkgs = ["cutadapt"]
94+
source = ["tests"]
95+
96+
[tool.coverage.report]
97+
precision = 1
98+
exclude_also = [
99+
"def __repr__",
100+
"@overload",
101+
]
102+
103+
[tool.coverage.paths]
104+
source = [
105+
"src/",
106+
"*/site-packages/",
107+
]

‎tox.ini‎

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,3 @@ commands = mypy src/
3838
deps = black==26.5.1
3939
skip_install = true
4040
commands = black --check src/ tests/ setup.py
41-
42-
[coverage:run]
43-
branch = True
44-
parallel = True
45-
concurrency = multiprocessing
46-
source_pkgs = cutadapt
47-
source = tests
48-
49-
[coverage:paths]
50-
source =
51-
src/
52-
*/site-packages/
53-
54-
[coverage:report]
55-
precision = 1
56-
exclude_lines =
57-
pragma: no cover
58-
def __repr__
59-
raise NotImplementedError

0 commit comments

Comments
 (0)