Skip to content

Commit 79ec562

Browse files
authored
Run mypy as a GitHub Action (#10)
Add a GitHub action to run Mypy on each commit and PR
1 parent ac5112b commit 79ec562

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/mypy.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Type Checking
2+
3+
on: [push, pull_request, workflow_dispatch]
4+
5+
jobs:
6+
mypy:
7+
# uncomment the line before to disable this job if needed.
8+
# if: false
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Mypy
13+
uses: jpetrucciani/mypy-check@master
14+
with:
15+
path: "."
16+
mypy_flags:
17+
"--install-types --non-interactive --config-file pyproject.toml
18+
--ignore-missing-imports --strict"
19+
requirements_file: "requirements-dev.txt"
20+
python_version: "3.11"

0 commit comments

Comments
 (0)