Skip to content

Commit 0dfb452

Browse files
committed
feat(experimental): set mypyc default build hook
1 parent 412020b commit 0dfb452

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,22 @@ examples = [
5757
]
5858

5959

60+
[tool.hatch.build.targets.wheel.hooks.mypyc]
61+
dependencies = [
62+
'hatch-mypyc >=0.16.0',
63+
'mypy >=1.15.0',
64+
]
65+
include = [ '/src' ]
66+
enable-by-default = true
67+
mypy-args = [
68+
'--disallow-untyped-calls',
69+
'--disallow-untyped-defs',
70+
'--disallow-incomplete-defs',
71+
'--exclude="/examples,/tests"',
72+
'--strict',
73+
]
74+
75+
6076
[tool.mypy]
6177
disallow_incomplete_defs = true
6278
disallow_untyped_calls = true

0 commit comments

Comments
 (0)