Skip to content

Commit ad8b17c

Browse files
committed
fix: Align Black and Ruff versions across all environments
- Update pre-commit hooks to Black 25.1.0 and Ruff 0.12.8 - Apply consistent formatting to completion.py - Ensure CI, local dev, and pre-commit use same tool versions
1 parent 8fe4126 commit ad8b17c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 23.12.1
3+
rev: 25.1.0
44
hooks:
55
- id: black
66

77
- repo: https://github.com/charliermarsh/ruff-pre-commit
8-
rev: v0.1.9
8+
rev: v0.12.8
99
hooks:
1010
- id: ruff
1111
args: [--fix]

commands/utils/completion.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -286,9 +286,9 @@ def _load_completion_modules(self) -> None:
286286
completions = module.COMPLETIONS
287287
for cmd_name, completer in completions.items():
288288
# Register with full path for nested commands
289-
self.completions[
290-
f"{subdir.name}.{cmd_name}"
291-
] = completer
289+
self.completions[f"{subdir.name}.{cmd_name}"] = (
290+
completer
291+
)
292292
except ImportError:
293293
# Silently skip if module can't be imported
294294
pass

0 commit comments

Comments
 (0)