Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit378d0d4

Browse files
committed
add coverage config
1 parent6f9be30 commit378d0d4

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

‎Makefile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ format:
2525
$(VENV_RUN); python -m isort.; python -m black.
2626

2727
test: venv
28-
$(VENV_RUN); python -m pytest tests/
28+
$(VENV_RUN); python -m pytest tests
29+
30+
test-coverage: venv
31+
$(VENV_RUN); coverage run --source=verdin -m pytest tests&& coverage lcov -o .coverage.lcov
2932

3033
install: venv
3134

‎pyproject.toml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,17 @@ include = '((verdin)/.*\.py$|tests/.*\.py$)'
1212
profile ='black'
1313
#extend_skip = []
1414
line_length =100
15+
16+
[tool.coverage.run]
17+
relative_files =true
18+
source = [
19+
"verdin/"
20+
]
21+
22+
[tool.coverage.report]
23+
exclude_lines = [
24+
"if __name__ == .__main__.:",
25+
"raise NotImplementedError",
26+
"return NotImplemented",
27+
"def __repr__",
28+
]

‎setup.cfg‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ dev =
3232
black>=22.1
3333
isort>=5.10.1
3434
pytest_httpserver>=1.0.1
35+
coverage[toml]>=5.0
36+
pytest-cov>=2.7.1
37+
coveralls
3538

3639
[options.packages.find]
3740
exclude =

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp