Skip to content

Conversation

@ogenstad
Copy link
Contributor

@ogenstad ogenstad commented Jan 28, 2026

Summary by CodeRabbit

Release Notes

  • Refactor

    • Optimized internal code organization for repository listing operations.
  • Chores

    • Updated development tooling configuration to enforce stronger code quality standards.

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

@coderabbitai
Copy link

coderabbitai bot commented Jan 28, 2026

Walkthrough

The pull request renames the repository listing command handler function from list to list_repositories in infrahub_sdk/ctl/repository.py. The decorator is updated to explicitly specify the command name as "list" using @app.command(name="list"), preserving the CLI interface. Additionally, the Ruff linter configuration in pyproject.toml is updated to remove "list" from the ignorelist, allowing the linter to check naming convention rules for this function. The function's parameters, return type, and internal logic remain unchanged.

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: renaming the 'list' function to 'list_repositories' to avoid shadowing Python's builtin 'list' type, which is clearly reflected in the changeset.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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: d6defe3
Status: ✅  Deploy successful!
Preview URL: https://dbfe5f0e.infrahub-sdk-python.pages.dev
Branch Preview URL: https://pog-shadow-list.infrahub-sdk-python.pages.dev

View logs

@codecov
Copy link

codecov bot commented Jan 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

@@           Coverage Diff           @@
##           stable     #786   +/-   ##
=======================================
  Coverage   80.36%   80.36%           
=======================================
  Files         115      115           
  Lines        9865     9865           
  Branches     1504     1504           
=======================================
  Hits         7928     7928           
  Misses       1415     1415           
  Partials      522      522           
Flag Coverage Δ
integration-tests 41.41% <100.00%> (ø)
python-3.10 51.38% <100.00%> (+0.02%) ⬆️
python-3.11 51.36% <100.00%> (-0.03%) ⬇️
python-3.12 51.38% <100.00%> (ø)
python-3.13 51.38% <100.00%> (ø)
python-3.14 53.01% <100.00%> (-0.03%) ⬇️
python-filler-3.12 24.07% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
infrahub_sdk/ctl/repository.py 72.00% <100.00%> (ø)
🚀 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 January 28, 2026 14:00
@ogenstad ogenstad requested a review from a team as a code owner January 28, 2026 14:00
@ogenstad ogenstad merged commit 09db4fa into stable Jan 28, 2026
21 checks passed
@ogenstad ogenstad deleted the pog-shadow-list branch January 28, 2026 14:10
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