Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/api/json/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@
"$schema": "https://json.schemastore.org/schema-catalog.json",
"version": 1,
"schemas": [
{
"name": "Hashgraph Online Skill Manifest",
"description": "Manifest for Hashgraph Online Registry Broker skill packages",
"fileMatch": [
"**/.hol/skill.json",
"**/hol/skill.json",
"hol-skill.json"
],
"url": "https://raw.githubusercontent.com/hashgraph-online/skill-publish/main/schemas/skill.schema.json"
},
{
"name": "release-hub.json",
"description": "Configuration file for Release Hub",
Expand Down
2 changes: 1 addition & 1 deletion src/schema-validation.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@
"partial-poe.json", // pyproject.json[tool.poe]
"partial-poetry.json", // pyproject.json[tool.poetry]
"partial-repo-review.json", // pyproject.json[tool.repo-review]
"partial-tox.json", // pyproject.json[tool.tox]
"partial-tox.json", // classic pyproject.json[tool.tox]
"tox.json",
"partial-eslint-plugins.json", // eslintrc.json[rules.*]
"partial-fusion-pack-metadata.json", // minecraft-pack-mcmeta.json[fusion]
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/json/pyproject.json
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@
"description": "Tombi is a toolkit for TOML; providing a formatter/linter and language server"
},
"tox": {
"$ref": "https://json.schemastore.org/partial-tox.json",
"$ref": "https://json.schemastore.org/tox.json",
"title": "Testing Framework",
"description": "Standardized automated testing of Python packages"
},
Expand Down
2 changes: 1 addition & 1 deletion src/schemas/json/ty.json
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,7 @@
},
"unsupported-dynamic-base": {
"title": "detects dynamic class bases that are unsupported as ty could not feasibly calculate the class's MRO",
"description": "## What it does\nChecks for dynamic class definitions (using `type()`) that have bases\nwhich are unsupported by ty.\n\nThis is equivalent to [`unsupported-base`] but applies to classes created\nvia `type()` rather than `class` statements.\n\n## Why is this bad?\nIf a dynamically created class has a base that is an unsupported type\nsuch as `type[T]`, ty will not be able to resolve the\n[method resolution order] (MRO) for the class. This may lead to an inferior\nunderstanding of your codebase and unpredictable type-checking behavior.\n\n## Default level\nThis rule is disabled by default because it will not cause a runtime error,\nand may be noisy on codebases that use `type()` in highly dynamic ways.\n\n## Examples\n```python\ndef factory(base: type[Base]) -> type:\n # `base` has type `type[Base]`, not `type[Base]` itself\n return type(\"Dynamic\", (base,), {}) # error: [unsupported-dynamic-base]\n```\n\n[method resolution order]: https://docs.python.org/3/glossary.html#term-method-resolution-order\n[`unsupported-base`]: https://docs.astral.sh/ty/rules/unsupported-base",
"description": "## What it does\nChecks for dynamic class definitions (using `type()`) that have bases\nwhich are unsupported by ty.\n\nThis is equivalent to `unsupported-base` but applies to classes created\nvia `type()` rather than `class` statements.\n\n## Why is this bad?\nIf a dynamically created class has a base that is an unsupported type\nsuch as `type[T]`, ty will not be able to resolve the\n[method resolution order] (MRO) for the class. This may lead to an inferior\nunderstanding of your codebase and unpredictable type-checking behavior.\n\n## Default level\nThis rule is disabled by default because it will not cause a runtime error,\nand may be noisy on codebases that use `type()` in highly dynamic ways.\n\n## Examples\n```python\ndef factory(base: type[Base]) -> type:\n # `base` has type `type[Base]`, not `type[Base]` itself\n return type(\"Dynamic\", (base,), {}) # error: [unsupported-dynamic-base]\n```\n\n[method resolution order]: https://docs.python.org/3/glossary.html#term-method-resolution-order",
"default": "ignore",
"oneOf": [
{
Expand Down