Skip to content

Conversation

@ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Dec 30, 2025

Summary by CodeRabbit

  • Chores
    • Updated package dependencies.
    • Adjusted internal linting rule configurations.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Dec 30, 2025

Walkthrough

The changes update the pyproject.toml configuration file with two modifications. First, the ty package dependency is upgraded from version 0.0.5 to version 0.0.8. Second, a lint rule override in the tests/** directory configuration is renamed from a previous reference to non-subscriptable to the new name not-subscriptable, maintaining the same linting rule enforcement under the updated naming convention. No changes to public API exports are included in this update.

Pre-merge checks

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The pull request title 'Upgrade ty=0.0.8' accurately reflects the main change: upgrading the ty package dependency from 0.0.5 to 0.0.8. It is concise, clear, and specific.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages
Copy link

Deploying infrahub-sdk-python with  Cloudflare Pages  Cloudflare Pages

Latest commit: 36e2de8
Status: ✅  Deploy successful!
Preview URL: https://3307a4b5.infrahub-sdk-python.pages.dev
Branch Preview URL: https://pog-upgrade-ty.infrahub-sdk-python.pages.dev

View logs

@codecov
Copy link

codecov bot commented Dec 30, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@                 Coverage Diff                  @@
##           infrahub-develop     #723      +/-   ##
====================================================
+ Coverage             76.28%   76.29%   +0.01%     
====================================================
  Files                   114      114              
  Lines                  9830     9831       +1     
  Branches               1508     1509       +1     
====================================================
+ Hits                   7499     7501       +2     
+ Misses                 1837     1834       -3     
- Partials                494      496       +2     
Flag Coverage Δ
integration-tests 34.44% <ø> (+0.01%) ⬆️
python-3.10 50.15% <ø> (-0.02%) ⬇️
python-3.11 50.15% <ø> (+<0.01%) ⬆️
python-3.12 50.11% <ø> (-0.04%) ⬇️
python-3.13 50.11% <ø> (-0.04%) ⬇️
python-3.14 51.79% <ø> (+<0.01%) ⬆️
python-filler-3.12 24.01% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ogenstad ogenstad marked this pull request as ready for review December 30, 2025 09:34
@ogenstad ogenstad requested a review from a team December 30, 2025 09:34
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 71477e4 and 36e2de8.

⛔ Files ignored due to path filters (1)
  • uv.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • pyproject.toml
🧰 Additional context used
🧠 Learnings (1)
📚 Learning: 2025-12-10T17:13:08.136Z
Learnt from: CR
Repo: opsmill/infrahub-sdk-python PR: 0
File: AGENTS.md:0-0
Timestamp: 2025-12-10T17:13:08.136Z
Learning: Applies to **/*.py : Never bypass type checking without justification

Applied to files:

  • pyproject.toml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
  • GitHub Check: Cloudflare Pages
🔇 Additional comments (1)
pyproject.toml (1)

85-85: The ty 0.0.8 upgrade is valid and the package exists on PyPI. No breaking changes or security issues were detected.

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.

@ogenstad ogenstad merged commit 4dbf8fe into infrahub-develop Dec 30, 2025
21 checks passed
@ogenstad ogenstad deleted the pog-upgrade-ty branch December 30, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants