add: mypy configuraion

This commit is contained in:
eggplants
2022-02-04 01:16:25 +09:00
parent 18a37b9d5e
commit c274c474b2
2 changed files with 9 additions and 4 deletions

View File

@@ -28,14 +28,13 @@ jobs:
pip install '.[dev]'
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics
- name: Lint with black
run: |
black . --check --diff
# - name: Static type test with mypy
# run: |
# mypy
- name: Static type test with mypy
run: |
mypy
- name: Test with pytest
run: |
pytest

View File

@@ -65,3 +65,9 @@ profile = black
indent-size = 4
max-line-length = 88
extend-ignore = E203,W503,E501,W605
[mypy]
python_version = 3.9
show_error_codes = True
pretty = True
strict = True