Skip to content

Commit cec955d

Browse files
committed
Sem-ver: bugfix Configure mypy and run it in ci
Signed-off-by: David Black <[email protected]>
1 parent 2b69062 commit cec955d

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip wheel setuptools
22-
pip install -q ruff
22+
pip install -q ruff mypy
2323
- name: Lint
2424
run: |
2525
ruff check .
2626
ruff format --check .
27+
mypy .
2728
- name: Test
2829
run: |
2930
pip install wheel

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,13 @@ line-ending = "auto"
1515
[tool.ruff.lint]
1616
extend-select = ["I"]
1717

18+
[tool.mypy]
19+
warn_unused_configs = true
20+
21+
[[tool.mypy.overrides]]
22+
module = "django.*"
23+
ignore_missing_imports = true
24+
25+
[[tool.mypy.overrides]]
26+
module = "httptest.*"
27+
ignore_missing_imports = true

0 commit comments

Comments
 (0)