Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,18 @@ repos:
]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.12.2
rev: v0.15.12
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/gitleaks/gitleaks
rev: v8.27.2
rev: v8.30.1
hooks:
- id: gitleaks

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.16.1
rev: v1.20.2
hooks:
- id: mypy
exclude: ^(tests/|examples/|docs/)
Expand Down
2 changes: 2 additions & 0 deletions class_generator/tests/test_class_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@
"Deployment",
"Image",
"ImageContentSourcePolicy",
"Ingress",
"Machine",
"NMState",
"OAuth",
"Pipeline",
"Pod",
"RouteAdvertisements",
"Secret",
"ServiceMeshMember",
"ServingRuntime",
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/generate_pytest_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def run_ruff_on_files(filepaths: list[str]) -> bool:

# Run ruff format and check on all files
for op in ("format", "check"):
cmd_str = f"uvx ruff {op} {' '.join(filepaths)}"
cmd_str = f"uvx ruff --config pyproject.toml {op} {' '.join(filepaths)}"
rc, _, _ = run_command(
command=shlex.split(cmd_str),
verify_stderr=False,
Expand Down