mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-21 23:18:13 +00:00
ci: turn mypy check into a part of style-check
This commit is contained in:
parent
06909aef7d
commit
04fe99af8e
4
Makefile
4
Makefile
@ -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
|
||||
|
10
ci/test.yml
10
ci/test.yml
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user