Skip to content

Commit dfe52fa

Browse files
chore(deps): bump version to 2026.03.15 (#222)
Co-authored-by: pyproject-schema-store-bot[bot] <181761350+pyproject-schema-store-bot[bot]@users.noreply.github.com>
1 parent 7041a9d commit dfe52fa

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
55

66
[project]
77
name = "validate-pyproject-schema-store"
8-
version = "2026.03.13"
8+
version = "2026.03.15"
99
authors = [
1010
{ name = "Henry Schreiner", email = "henryfs@princeton.edu" },
1111
]

src/validate_pyproject_schema_store/resources/ty.schema.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,8 +1207,8 @@
12071207
},
12081208
"possibly-missing-attribute": {
12091209
"title": "detects references to possibly missing attributes",
1210-
"description": "## What it does\nChecks for possibly missing attributes.\n\n## Why is this bad?\nAttempting to access a missing attribute will raise an `AttributeError` at runtime.\n\n## Examples\n```python\nclass A:\n if b:\n c = 0\n\nA.c # AttributeError: type object 'A' has no attribute 'c'\n```",
1211-
"default": "warn",
1210+
"description": "## What it does\nChecks for possibly missing attributes.\n\n## Why is this bad?\nAttempting to access a missing attribute will raise an `AttributeError` at runtime.\n\n## Rule status\nThis rule is currently disabled by default because of the number of\nfalse positives it can produce.\n\n## Examples\n```python\nclass A:\n if b:\n c = 0\n\nA.c # AttributeError: type object 'A' has no attribute 'c'\n```",
1211+
"default": "ignore",
12121212
"oneOf": [
12131213
{
12141214
"$ref": "#/definitions/Level"
@@ -1235,6 +1235,16 @@
12351235
}
12361236
]
12371237
},
1238+
"possibly-missing-submodule": {
1239+
"title": "detects accesses of submodules that may not be available as attributes on their parent module",
1240+
"description": "## What it does\nChecks for accesses of submodules that might not've been imported.\n\n## Why is this bad?\nWhen module `a` has a submodule `b`, `import a` isn't generally enough to let you access\n`a.b.` You either need to explicitly `import a.b`, or else you need the `__init__.py` file\nof `a` to include `from . import b`. Without one of those, `a.b` is an `AttributeError`.\n\n## Examples\n```python\nimport html\nhtml.parser # AttributeError: module 'html' has no attribute 'parser'\n```",
1241+
"default": "warn",
1242+
"oneOf": [
1243+
{
1244+
"$ref": "#/definitions/Level"
1245+
}
1246+
]
1247+
},
12381248
"possibly-unresolved-reference": {
12391249
"title": "detects references to possibly undefined names",
12401250
"description": "## What it does\nChecks for references to names that are possibly not defined.\n\n## Why is this bad?\nUsing an undefined variable will raise a `NameError` at runtime.\n\n## Rule status\nThis rule is currently disabled by default because of the number of\nfalse positives it can produce.\n\n## Example\n\n```python\nfor i in range(0):\n x = i\n\nprint(x) # NameError: name 'x' is not defined\n```",

0 commit comments

Comments
 (0)