Skip to content

Commit

Permalink
ci: Python package action: switch from flake8-mypy to mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmhoffman committed Jun 2, 2023
1 parent 11d05a3 commit 12e084a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip flake8 pep8-naming flake8-builtins flake8-bugbear flake8-import-order flake8-quotes flake8-docstrings flake8-mypy mypy
python -m pip install --upgrade pip flake8 pep8-naming flake8-builtins flake8-bugbear flake8-import-order flake8-quotes flake8-docstrings mypy
- 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
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check code with mypy
run: |
mypy .

0 comments on commit 12e084a

Please sign in to comment.