Enable mypy in CI

This commit is contained in:
Harshal Sheth 2021-02-11 12:55:41 -08:00 committed by Shirshanka Das
parent b759205b52
commit 4a3e94986a

View File

@ -19,15 +19,17 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
pip install -e .
if [ -f test_requirements.txt ]; then pip install -r test_requirements.txt; fi
pip install -r test_requirements.txt
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
#flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check with mypy
run: |
mypy -p gometa
- name: Tests with pytest
run: |
pytest