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
|
# Unit test / coverage reports
|
||||||
htmlcov/
|
htmlcov/
|
||||||
|
mypycov/
|
||||||
.tox/
|
.tox/
|
||||||
.coverage
|
.coverage
|
||||||
.cache
|
.cache
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ unit:
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- htmlcov/
|
- htmlcov/
|
||||||
|
- mypycov/
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -22,7 +23,9 @@ pages:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- mkdir -p public/cov
|
- mkdir -p public/cov
|
||||||
|
- mkdir -p public/mypycov
|
||||||
- cp htmlcov/* public/cov/
|
- cp htmlcov/* public/cov/
|
||||||
|
- cp mypycov/* public/mypycov/
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
|
||||||
|
|
@ -728,7 +728,7 @@ order the version tags correctly.
|
||||||
[license_ref]: https://gitlab.com/mbarkhau/pycalver/blob/master/LICENSE
|
[license_ref]: https://gitlab.com/mbarkhau/pycalver/blob/master/LICENSE
|
||||||
|
|
||||||
[mypy_img]: https://img.shields.io/badge/mypy-checked-green.svg
|
[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_img]: https://img.shields.io/badge/code%20style-%20sjfmt-f71.svg
|
||||||
[style_ref]: https://gitlab.com/mbarkhau/straitjacket/
|
[style_ref]: https://gitlab.com/mbarkhau/straitjacket/
|
||||||
|
|
|
||||||
4
makefile
4
makefile
|
|
@ -301,7 +301,9 @@ mypy:
|
||||||
@rm -rf ".mypy_cache";
|
@rm -rf ".mypy_cache";
|
||||||
|
|
||||||
@printf "mypy ....\n"
|
@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"
|
@printf "\e[1F\e[9C ok\n"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue