mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
python: mypy in lint workflow
This commit is contained in:
4
.github/workflows/lint-python.yml
vendored
4
.github/workflows/lint-python.yml
vendored
@ -27,8 +27,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install flake8
|
pip install flake8
|
||||||
|
pip install mypy
|
||||||
|
pip install django-stubs
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||||
|
|
||||||
- name: Lint Flake8
|
- name: Lint Flake8
|
||||||
run: |
|
run: |
|
||||||
flake8 --count --show-source --statistics
|
make lint
|
||||||
|
|||||||
@ -48,6 +48,7 @@ compose-prod: # Up containers in a production environment.
|
|||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: # Lint the source code for style and check for types.
|
lint: # Lint the source code for style and check for types.
|
||||||
@flake8 --count --show-source --statistics
|
@flake8 --count --show-source --statistics
|
||||||
|
@mypy .
|
||||||
|
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
test: # Recursively run the tests.
|
test: # Recursively run the tests.
|
||||||
|
|||||||
Reference in New Issue
Block a user