@@ -111,51 +111,26 @@ matrix.qt.features = [
111
111
]
112
112
113
113
[tool .hatch .envs .typing ]
114
- features = [" test " ]
115
- dependencies = [ " mypy>=1.6.0 " , " traitlets>=5.13.0 " , " ipython>=8.16.1 " , " jupyter_client>=8.5 " ]
114
+ dependencies = [" pre-commit " ]
115
+ detached = true
116
116
[tool .hatch .envs .typing .scripts ]
117
- test = " mypy --install-types --non-interactive {args} "
117
+ test = " pre-commit run --all-files --hook-stage manual mypy "
118
118
119
119
[tool .hatch .envs .lint ]
120
- dependencies = [" mdformat>0.7 " , " ruff==0.1.3 " ]
120
+ dependencies = [" pre-commit " ]
121
121
detached = true
122
122
[tool .hatch .envs .lint .scripts ]
123
- style = [
124
- " ruff {args:.}" ,
125
- " ruff format {args:.}" ,
126
- " mdformat --check {args:docs *.md}"
127
- ]
128
- fmt = [
129
- " ruff --fix {args:.}" ,
130
- " ruff format {args:.}" ,
131
- " mdformat {args:docs *.md}"
132
- ]
123
+ build = [" pre-commit run --all-files ruff" ]
133
124
134
125
[tool .mypy ]
135
126
files = " ipykernel"
136
- check_untyped_defs = true
137
- disallow_incomplete_defs = true
138
- disallow_untyped_decorators = true
127
+ strict = true
128
+ disable_error_code = [" no-untyped-def" , " no-untyped-call" , " import-not-found" ]
139
129
enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
140
130
follow_imports = " normal"
141
- ignore_missing_imports = true
142
- no_implicit_optional = true
143
- no_implicit_reexport = true
144
131
pretty = true
145
- show_error_context = true
146
132
show_error_codes = true
147
- strict_equality = true
148
- strict_optional = true
149
- warn_unused_configs = true
150
- warn_redundant_casts = true
151
- warn_return_any = true
152
133
warn_unreachable = true
153
- warn_unused_ignores = true
154
-
155
- [[tool .mypy .overrides ]]
156
- module = " tests.*"
157
- disable_error_code = [" ignore-without-code" ]
158
- warn_unreachable = false
159
134
160
135
[tool .pytest .ini_options ]
161
136
minversion = " 6.0"
@@ -340,4 +315,4 @@ toplevel = ["ipykernel/", "ipykernel_launcher.py"]
340
315
ignore = [" W002" ]
341
316
342
317
[tool .repo-review ]
343
- ignore = [" PY007" , " PP308" , " GH102" , " PC140 " , " MY101" ]
318
+ ignore = [" PY007" , " PP308" , " GH102" , " MY101" ]
0 commit comments