File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -20,10 +20,10 @@ tracker = "https://github.com/compilerla/conventional-pre-commit/issues"
2020dev = [
2121 " black" ,
2222 " build" ,
23+ " coverage" ,
2324 " flake8" ,
2425 " pre-commit" ,
2526 " pytest" ,
26- " pytest-cov"
2727]
2828
2929[project .scripts ]
@@ -38,6 +38,11 @@ line-length = 127
3838target-version = [' py311' ]
3939include = ' \.pyi?$'
4040
41+ [tool .coverage .run ]
42+ branch = true
43+ relative_files = true
44+ source = [" conventional_pre_commit" ]
45+
4146[tool .pytest .ini_options ]
4247testpaths = [" tests" ]
4348norecursedirs = [
Original file line number Diff line number Diff line change 1-
21#! /usr/bin/env bash
32set -eux
43
5- pytest --cov=conventional_pre_commit --cov-branch --import-mode=importlib
4+ # run normal pytests
5+ coverage run -m pytest
66
77# clean out old coverage results
8- rm -rf coverage
9- coverage html --directory coverage
8+ rm -rf ./tests/coverage
9+
10+ # regenerate coverate report
11+ coverage html --directory ./tests/coverage
You can’t perform that action at this time.
0 commit comments