Skip to content

Commit

Permalink
lint python
Browse files Browse the repository at this point in the history
  • Loading branch information
bilalabbad committed Dec 11, 2024
1 parent 2441893 commit 9f4d57a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions backend/infrahub/graphql/mutations/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async def mutate(
fields = await extract_fields(info.field_nodes[0].selection_set)
return cls(object=await obj.to_graphql(fields=fields.get("object", {})), ok=True, task=task)


class BranchNameInput(InputObjectType):
name = String(required=False)

Expand Down
1 change: 0 additions & 1 deletion backend/tests/integration/git/test_git_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ async def test_get_missing_file(self, db: InfrahubDatabase, client: InfrahubClie
id=obj.id,
name=git_repo_car_dealership.name,
location=git_repo_car_dealership.path,
task_report=FakeTaskReportLogger(),
client=client,
)

Expand Down
5 changes: 2 additions & 3 deletions tasks/shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,10 @@

from invoke import Context, UnexpectedExit

from .utils import get_yamllint_rules, str_to_bool
from .utils import str_to_bool

if TYPE_CHECKING:
from invoke.runners import Result
from ruamel.yaml.main import YAML


class DatabaseType(str, Enum):
Expand Down Expand Up @@ -275,4 +274,4 @@ def build_dev_compose_files_cmd(database: str) -> str:
print("!! Found a dev override file for docker-compose !!")
DEV_COMPOSE_FILES.append(DEV_OVERRIDE_FILE)

return f"-f {' -f '.join(map(str, DEV_COMPOSE_FILES))}"
return f"-f {' -f '.join(map(str, DEV_COMPOSE_FILES))}"

0 comments on commit 9f4d57a

Please sign in to comment.