Skip to content

Commit 04ffd9c

Browse files
committed
Add workflows to GHA configuration for typechecking
1 parent c8dab55 commit 04ffd9c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/python.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,17 @@ jobs:
3333
- name: Install dependencies
3434
run: |
3535
python -m pip install --upgrade pip
36-
pip install flake8 pytest
36+
pip install flake8 mypy pytest
3737
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3838
- name: Lint with flake8
3939
run: |
4040
# stop the build if there are Python syntax errors or undefined names
4141
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
4242
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
4343
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
44+
- name: Typecheck with mypy
45+
working-directory: ./python
46+
run: mypy .
4447
- name: Run UnitTest
4548
working-directory: ./python
4649
run: python test/test_application.py

0 commit comments

Comments
 (0)