Skip to content

Commit d284ec0

Browse files
authored
Merge pull request #2191 from strictdoc-project/stanislaw/code_climate
Code climate: .coveragerc.combined: set a limit for the combined code coverage
2 parents c24ee50 + 8d2809b commit d284ec0

File tree

3 files changed

+15
-4
lines changed

3 files changed

+15
-4
lines changed

.coveragerc.combined

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[run]
2+
branch = True
3+
omit =
4+
build/
5+
**/output/cache/*
6+
**/Output/cache/*
7+
8+
[report]
9+
fail_under = 91.0
10+
precision = 2
11+
skip_covered = true
12+
show_missing = true

strictdoc/export/html/document_type.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,6 @@ def is_deeptrace(self):
5757
def is_pdf(self):
5858
return self.document_type == DocumentType.PDF
5959

60-
def get_string(self) -> str:
61-
return self.document_type
62-
6360
def get_page_title(self) -> str:
6461
if self.document_type == DocumentType.DOCUMENT:
6562
return "Document"

tasks.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,9 @@ def coverage_combine(context):
477477
context,
478478
ToxEnvironment.CHECK,
479479
"""
480-
coverage html --data-file build/coverage/.coverage.combined
480+
coverage html
481+
--rcfile .coveragerc.combined
482+
--data-file build/coverage/.coverage.combined
481483
""",
482484
)
483485

0 commit comments

Comments
 (0)