Skip to content

Commit 45c9f89

Browse files
committed
Add mypy
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
1 parent b7be0cd commit 45c9f89

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
@@ -23,3 +23,11 @@ repos:
2323
- id: flake8
2424
args:
2525
- --max-line-length=120
26+
27+
- repo: https://github.com/pre-commit/mirrors-mypy
28+
rev: "v1.4.1"
29+
hooks:
30+
- id: mypy
31+
files: ^(src)
32+
additional_dependencies:
33+
- Click

pyproject.toml

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

7171
[tool.coverage]
7272
run.source = ["src"]
73+
74+
[tool.mypy]
75+
strict = true
76+
files = ["src"]
77+
python_version = "3.9"
78+
warn_unused_configs = true
79+
show_error_codes = true
80+
disallow_untyped_defs = false
81+
follow_imports = "normal"

0 commit comments

Comments
 (0)