Skip to content

Commit 683991d

Browse files
feat: add mypy schema (#3422)
* feat: add mypy schema Signed-off-by: Henry Schreiner <[email protected]> * refactor: add partial to the name and ID Signed-off-by: Henry Schreiner <[email protected]> * Update src/api/json/catalog.json Co-authored-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]> Co-authored-by: Edwin Kofler <[email protected]>
1 parent e5222f2 commit 683991d

File tree

9 files changed

+767
-0
lines changed

9 files changed

+767
-0
lines changed

src/api/json/catalog.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2780,6 +2780,12 @@
27802780
"fileMatch": ["mycode.json"],
27812781
"url": "https://json.schemastore.org/mycode.json"
27822782
},
2783+
{
2784+
"name": "mypy",
2785+
"description": "mypy, a Python type checker",
2786+
"fileMatch": [],
2787+
"url": "https://json.schemastore.org/partial-mypy.json"
2788+
},
27832789
{
27842790
"name": "napari plugin manifest",
27852791
"description": "a napari plugin manifest",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[[tool.mypy.overrides]]
2+
module = []
3+
disallow_untyped_defs = true
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# mypy global options:
2+
3+
[tool.mypy]
4+
python_versions = "2.7"
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[[tool.mypy.overrides]]
2+
disallow_untyped_defs = true

src/schema-validation.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@
773773
"externalSchema": [
774774
"cibuildwheel.json",
775775
"hatch.json",
776+
"partial-mypy.json",
776777
"poetry.json",
777778
"ruff.json",
778779
"scikit-build.json",

0 commit comments

Comments
 (0)