Skip to content

Commit a7aa494

Browse files
committed
move mypy configuration to pyproject.toml
1 parent 34a3272 commit a7aa494

2 files changed

Lines changed: 42 additions & 8 deletions

File tree

.mypy.ini

Lines changed: 0 additions & 8 deletions
This file was deleted.

pyproject.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,45 @@ fragment.perf.name = "Performance"
264264
fragment.chore.name = "Miscellaneous changes"
265265
fragment.revert.name = "Revert"
266266
fragment.breaking.name = "Breaking changes" # add `!` to commit type (e.g. “feature!:”)
267+
268+
[tool.mypy]
269+
exclude = [
270+
'^src/testing/anndata/__init__\.py$',
271+
'^src/testing/anndata/_doctest\.py$',
272+
]
273+
274+
ignore_missing_imports = true
275+
276+
[[tool.mypy.overrides]]
277+
module = [ "anndata/*" ]
278+
279+
disable_error_code = [
280+
"import-untyped",
281+
"no-redef",
282+
"attr-defined",
283+
"union-attr",
284+
"index",
285+
"assignment",
286+
"arg-type",
287+
"return-value",
288+
"type-arg",
289+
"type-var",
290+
"return",
291+
"call-arg",
292+
"misc",
293+
"override",
294+
"valid-type",
295+
"has-type",
296+
"name-defined",
297+
"var-annotated",
298+
"call-overload",
299+
"operator",
300+
"list-item",
301+
]
302+
303+
[[tool.mypy.overrides]]
304+
module = [ "testing/*" ]
305+
306+
disable_error_code = [
307+
"attr-defined",
308+
]

0 commit comments

Comments
 (0)