Skip to content

Commit 315cab0

Browse files
committed
Merge remote-tracking branch 'erlend-aasland/typing/ci-and-config' into mypy
2 parents d1c28e5 + 4efb9d9 commit 315cab0

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,18 @@ jobs:
5353
run: python3 -m pip install -r doc/requirements.txt -e .
5454
- name: Build docs
5555
run: make -C doc html
56+
57+
mypy:
58+
continue-on-error: true
59+
runs-on: ubuntu-latest
60+
steps:
61+
- uses: actions/checkout@v4
62+
- uses: actions/setup-python@v5
63+
with:
64+
python-version: 3.12
65+
cache: pip
66+
cache-dependency-path: |
67+
'pyproject.toml'
68+
'requirements-dev.txt'
69+
- run: pip install -r requirements-dev.txt -e .
70+
- run: mypy --config-file pyproject.toml .

pyproject.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,3 +48,11 @@ testpaths = [
4848
filterwarnings = [
4949
"ignore::DeprecationWarning",
5050
]
51+
52+
[tool.mypy]
53+
python_version = "3.8"
54+
exclude = [
55+
"^examples*",
56+
"^test*",
57+
"^setup.py*",
58+
]

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mypy~=1.10

0 commit comments

Comments
 (0)