Skip to content

Commit

Permalink
Configure mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Dec 2, 2021
1 parent 2b80cf0 commit 5529aea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: 3.8

- name: Install Python dependencies
run: pip install black flake8
run: pip install black flake8 mypy pytest -e .

- name: Run linters
uses: samuelmeuli/lint-action@v1
Expand All @@ -31,6 +31,7 @@ jobs:
# Enable linters
black: true
flake8: true
mypy: true
flake8_args: "--exclude='test.py __init__.py' --max-line-length=120"
auto_fix: true
auto_fix: false
git_email: "[email protected]"
4 changes: 4 additions & 0 deletions mypy.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[mypy]

[mypy-setuptools.*]
ignore_missing_imports = true

0 comments on commit 5529aea

Please sign in to comment.