python: mypy in lint workflow

This commit is contained in:
sshakndr
2023-11-27 15:36:56 +07:00
parent 9389607aaf
commit 8fd9113c47
2 changed files with 4 additions and 1 deletions

View File

@ -27,8 +27,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install flake8
pip install mypy
pip install django-stubs
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint Flake8
run: |
flake8 --count --show-source --statistics
make lint

View File

@ -48,6 +48,7 @@ compose-prod: # Up containers in a production environment.
.PHONY: lint
lint: # Lint the source code for style and check for types.
@flake8 --count --show-source --statistics
@mypy .
.PHONY: test
test: # Recursively run the tests.