File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments