mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-28 10:28:22 +00:00
Enable mypy in CI
This commit is contained in:
parent
b759205b52
commit
4a3e94986a
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user