mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 15:38:11 +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
|
flake8 --version
|
||||||
isort --version | awk '/VERSION/{print $$2}'
|
isort --version | awk '/VERSION/{print $$2}'
|
||||||
black --version
|
black --version
|
||||||
|
@echo [MYPY]
|
||||||
|
@make -C core mypy
|
||||||
@echo [FLAKE8]
|
@echo [FLAKE8]
|
||||||
@flake8 $(PY_FILES)
|
@flake8 $(PY_FILES)
|
||||||
@echo [ISORT]
|
@echo [ISORT]
|
||||||
@ -30,6 +32,8 @@ pystyle: ## apply code style on application sources and tests
|
|||||||
@isort $(PY_FILES)
|
@isort $(PY_FILES)
|
||||||
@echo [BLACK]
|
@echo [BLACK]
|
||||||
@black $(PY_FILES)
|
@black $(PY_FILES)
|
||||||
|
@echo [MYPY]
|
||||||
|
@make -C core mypy
|
||||||
@echo [FLAKE8]
|
@echo [FLAKE8]
|
||||||
@flake8 $(PY_FILES)
|
@flake8 $(PY_FILES)
|
||||||
make -C python style
|
make -C python style
|
||||||
|
10
ci/test.yml
10
ci/test.yml
@ -225,16 +225,6 @@ core unix persistence test:
|
|||||||
expire_in: 1 week
|
expire_in: 1 week
|
||||||
when: always
|
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
|
# Crypto
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user