Skip to content

Commit

Permalink
ci: run mypy again with Python 3.7 (#223)
Browse files Browse the repository at this point in the history
* added back mypy to run in CI with Python 3.7
  • Loading branch information
alexander-held authored May 7, 2021
1 parent b166d43 commit a22969f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,14 @@ jobs:
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install .[test]
- name: Static code analysis with flake8
- name: Static code analysis with flake8 and mypy
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 src/cabinetry --select=E9,F63,F7,F82 --show-source
# check for additional issues flagged by flake8
flake8
- name: Type checking with mypy
if: matrix.python-version != 3.7
run: |
mypy # 3.7 not supported due to boost-histogram
# run mypy for type checking
mypy
- name: Format with Black
run: |
black --check --diff --verbose .
Expand Down

0 comments on commit a22969f

Please sign in to comment.