Skip to content

Commit 0c5fafa

Browse files
committed
add mypy, use version from pyproject
1 parent acbd0c0 commit 0c5fafa

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ repos:
6363
hooks:
6464
- id: mypy
6565
exclude: ^(tests/)
66-
additional_dependencies: [types-all]
66+
additional_dependencies: []

.release-it.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@
1717
"tagAnnotation": "Release ${version}",
1818
"tagArgs": [],
1919
"push": true,
20-
"pushArgs": [
21-
"--follow-tags"
22-
],
20+
"pushArgs": ["--follow-tags"],
2321
"pushRepo": "",
2422
"changelog": "git log --no-merges --pretty=format:\"* %s (%h) by %an on %as\" ${from}...${to}"
2523
},
@@ -40,8 +38,8 @@
4038
},
4139
"plugins": {
4240
"@release-it/bumper": {
43-
"in": "VERSION",
44-
"out": "VERSION"
41+
"in": "pyproject.toml",
42+
"out": { "file": "pyproject.toml", "path": "project.version" }
4543
}
4644
}
4745
}

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,12 @@ output-format = "grouped"
66

77
[tool.ruff.format]
88
exclude = [".git", ".venv", ".mypy_cache", ".tox", "__pycache__"]
9+
10+
[tool.mypy]
11+
check_untyped_defs = true
12+
disallow_any_generics = false
13+
disallow_incomplete_defs = true
14+
disallow_untyped_defs = true
15+
no_implicit_optional = true
16+
show_error_codes = true
17+
warn_unused_ignores = true

0 commit comments

Comments
 (0)