1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-13 19:18:56 +00:00

ci: turn mypy check into a part of style-check

This commit is contained in:
matejcik 2020-01-28 16:32:08 +01:00
parent 06909aef7d
commit 04fe99af8e
2 changed files with 4 additions and 10 deletions

View File

@ -17,6 +17,8 @@ pystyle_check: ## run code style check on application sources and tests
flake8 --version
isort --version | awk '/VERSION/{print $$2}'
black --version
@echo [MYPY]
@make -C core mypy
@echo [FLAKE8]
@flake8 $(PY_FILES)
@echo [ISORT]
@ -30,6 +32,8 @@ pystyle: ## apply code style on application sources and tests
@isort $(PY_FILES)
@echo [BLACK]
@black $(PY_FILES)
@echo [MYPY]
@make -C core mypy
@echo [FLAKE8]
@flake8 $(PY_FILES)
make -C python style

View File

@ -225,16 +225,6 @@ core unix persistence test:
expire_in: 1 week
when: always
core mypy test:
stage: test
<<: *only_changes_core
dependencies: [] # no artifacts needed
script:
- cd core
- pipenv run mypy --version
- pipenv run make res # needed for clean mypy
- pipenv run make mypy
# Crypto