mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
add mypy lint to makefile
This commit is contained in:
parent
93392f8206
commit
75c4ee3d2b
1 changed files with 13 additions and 0 deletions
13
Makefile
13
Makefile
|
@ -14,6 +14,19 @@ lint-isort: ## check imports are organized, with isort
|
|||
lint-isort-apply: ## apply isort's imports organization suggestions
|
||||
isort ./
|
||||
|
||||
mypy-host:
|
||||
mypy dangerzone
|
||||
|
||||
mypy-container:
|
||||
mypy container
|
||||
|
||||
mypy-dev-scripts:
|
||||
mypy install \
|
||||
dev_scripts/* \
|
||||
*.py
|
||||
|
||||
mypy: mypy-host # mypy-container mypy-dev-scripts ## check type hints with mypy
|
||||
|
||||
.PHONY: lint
|
||||
lint: lint-black lint-isort ## check the code with various linters
|
||||
|
||||
|
|
Loading…
Reference in a new issue