Skip to content

Commit 874fa92

Browse files
committed
Add mypy
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
1 parent 8118a76 commit 874fa92

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,11 @@ repos:
2222
hooks:
2323
- id: ruff
2424
args: ["--fix", "--show-fixes"]
25+
26+
- repo: https://github.com/pre-commit/mirrors-mypy
27+
rev: "v1.4.1"
28+
hooks:
29+
- id: mypy
30+
files: ^(src)
31+
additional_dependencies:
32+
- Click

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,12 @@ testpaths = ["tests"]
121121

122122
[tool.coverage]
123123
run.source = ["src"]
124+
125+
[tool.mypy]
126+
strict = true
127+
files = ["src"]
128+
python_version = "3.9"
129+
warn_unused_configs = true
130+
show_error_codes = true
131+
disallow_untyped_defs = false
132+
follow_imports = "normal"

0 commit comments

Comments
 (0)