mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-12 14:30:09 +01:00
add coverage output for mypy
This commit is contained in:
parent
c85c80abda
commit
d702a8f07b
4 changed files with 8 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -45,6 +45,7 @@ pip-delete-this-directory.txt
|
|||
|
||||
# Unit test / coverage reports
|
||||
htmlcov/
|
||||
mypycov/
|
||||
.tox/
|
||||
.coverage
|
||||
.cache
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ unit:
|
|||
artifacts:
|
||||
paths:
|
||||
- htmlcov/
|
||||
- mypycov/
|
||||
allow_failure: false
|
||||
|
||||
|
||||
|
|
@ -22,7 +23,9 @@ pages:
|
|||
stage: build
|
||||
script:
|
||||
- mkdir -p public/cov
|
||||
- mkdir -p public/mypycov
|
||||
- cp htmlcov/* public/cov/
|
||||
- cp mypycov/* public/mypycov/
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
|
|
|||
|
|
@ -728,7 +728,7 @@ order the version tags correctly.
|
|||
[license_ref]: https://gitlab.com/mbarkhau/pycalver/blob/master/LICENSE
|
||||
|
||||
[mypy_img]: https://img.shields.io/badge/mypy-checked-green.svg
|
||||
[mypy_ref]: http://mypy-lang.org/
|
||||
[mypy_ref]: https://mbarkhau.gitlab.io/pycalver/mypycov
|
||||
|
||||
[style_img]: https://img.shields.io/badge/code%20style-%20sjfmt-f71.svg
|
||||
[style_ref]: https://gitlab.com/mbarkhau/straitjacket/
|
||||
|
|
|
|||
4
makefile
4
makefile
|
|
@ -301,7 +301,9 @@ mypy:
|
|||
@rm -rf ".mypy_cache";
|
||||
|
||||
@printf "mypy ....\n"
|
||||
@MYPYPATH=stubs/:vendor/ $(DEV_ENV_PY) -m mypy src/
|
||||
@MYPYPATH=stubs/:vendor/ $(DEV_ENV_PY) -m mypy \
|
||||
--html-report mypycov \
|
||||
src/ | sed "/Generated HTML report/d"
|
||||
@printf "\e[1F\e[9C ok\n"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue