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]' pip install '.[dev]'
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --show-source --statistics flake8 . --count --show-source --statistics
- name: Lint with black - name: Lint with black
run: | run: |
black . --check --diff black . --check --diff
# - name: Static type test with mypy - name: Static type test with mypy
# run: | run: |
# mypy mypy
- name: Test with pytest - name: Test with pytest
run: | run: |
pytest pytest

View File

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