From d6defe3d5dab78951bfa932752a86846a1c0070d Mon Sep 17 00:00:00 2001 From: Patrick Ogenstad Date: Wed, 28 Jan 2026 14:25:27 +0100 Subject: [PATCH] Avoid shadowing builtin `list` --- infrahub_sdk/ctl/repository.py | 4 ++-- pyproject.toml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/infrahub_sdk/ctl/repository.py b/infrahub_sdk/ctl/repository.py index ec03136a..1e4ca6f4 100644 --- a/infrahub_sdk/ctl/repository.py +++ b/infrahub_sdk/ctl/repository.py @@ -150,8 +150,8 @@ async def add( await client.execute_graphql(query=query.render(), tracker="mutation-repository-create") -@app.command() -async def list( +@app.command(name="list") +async def list_repositories( branch: str | None = typer.Option(None, help="Branch on which to list repositories."), debug: bool = False, _: str = CONFIG_PARAM, diff --git a/pyproject.toml b/pyproject.toml index 2ade0bc8..47e8db5f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -268,7 +268,6 @@ ignorelist = [ # Review and update builtin shadowing below this line "filter", "format", - "list", "property", ]