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
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ lint = [
"mypy==1.11.2",
"ruff==0.14.5",
"astroid>=3.1,<4.0",
"ty==0.0.5",
"ty==0.0.8",
]
types = [
"types-ujson",
Expand Down Expand Up @@ -157,7 +157,7 @@ invalid-argument-type = "ignore"
invalid-assignment = "ignore"
invalid-method-override = "ignore"
no-matching-overload = "ignore"
non-subscriptable = "ignore"
not-subscriptable = "ignore"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

ty 0.0.8 Python type checker rule names non-subscriptable not-subscriptable

💡 Result:

The rule name is "non-subscriptable". [1]

Sources:
[1] ty rules reference — "non-subscriptable". https://docs.astral.sh/ty/reference/rules/


🏁 Script executed:

# First, let's find and examine the pyproject.toml file to see the configuration context
fd pyproject.toml

Repository: opsmill/infrahub-sdk-python

Length of output: 85


🏁 Script executed:

# Search for references to these rule names in the repository
rg "non-subscriptable|not-subscriptable" --type toml

Repository: opsmill/infrahub-sdk-python

Length of output: 114


🏁 Script executed:

# Read pyproject.toml to check the ty version and rule configuration
cat -n pyproject.toml | sed -n '80,170p'

Repository: opsmill/infrahub-sdk-python

Length of output: 3390


🏁 Script executed:

# Also search for the ty dependency specification to confirm the version
rg "ty|pyright" pyproject.toml | head -20

Repository: opsmill/infrahub-sdk-python

Length of output: 546


Revert the rule name from not-subscriptable back to non-subscriptable.

The official ty 0.0.8 rule is named non-subscriptable, not not-subscriptable. Using the incorrect name means ty will not recognize or apply this rule configuration. While the naming pattern differs from not-iterable on the next line, the rule name must match the official ty documentation.

🤖 Prompt for AI Agents
In pyproject.toml at line 160, the ty rule name is incorrectly set to
"not-subscriptable"; change it back to the official name "non-subscriptable" so
ty 0.0.8 recognizes and applies the rule—update the key at that line to
"non-subscriptable = \"ignore\"" (keeping the same value) and save the file.

not-iterable = "ignore"
possibly-missing-attribute = "ignore"
unresolved-attribute = "ignore"
Expand Down
46 changes: 23 additions & 23 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.