-
Notifications
You must be signed in to change notification settings - Fork 7
Fixes for test annotations and split up rules #707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis pull request introduces type annotations across multiple test and fixture files. The changes include adding explicit type hints to method parameters in transform classes (TagsTransform, AnimalPerson, ConvertedAnimalPerson) and test functions in the pytest plugin test suite. The conftest.py file receives a type annotation for the pytest hook parameter. Additionally, pyproject.toml is updated to replace a consolidated ANN001 linting suppression rule with granular per-file entries, and an import statement for pytest is added to support the new type annotations. Pre-merge checks❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (3)**/*.py📄 CodeRabbit inference engine (AGENTS.md)
Files:
tests/**/*.py📄 CodeRabbit inference engine (tests/AGENTS.md)
Files:
tests/unit/**/*.py📄 CodeRabbit inference engine (tests/AGENTS.md)
Files:
🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-12-10T17:13:29.593ZApplied to files:
📚 Learning: 2025-12-10T17:13:29.593ZApplied to files:
📚 Learning: 2025-12-10T17:13:29.593ZApplied to files:
🧬 Code graph analysis (1)tests/fixtures/repos/ctl_integration/transforms/converted.py (2)
⏰ 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)
🔇 Additional comments (8)
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. Comment |
Deploying infrahub-sdk-python with
|
| Latest commit: |
d0dd721
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://4e16e02d.infrahub-sdk-python.pages.dev |
| Branch Preview URL: | https://pog-test-annotations.infrahub-sdk-python.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. @@ Coverage Diff @@
## infrahub-develop #707 +/- ##
=================================================
Coverage 76.28% 76.28%
=================================================
Files 114 114
Lines 9830 9830
Branches 1508 1508
=================================================
Hits 7499 7499
Misses 1837 1837
Partials 494 494
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Split up ignores for test annotations into smaller components and fix some of the violations.
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.