Skip to content

Commit c52fa71

Browse files
committed
Replace black with ruff formatter
#236 (comment)
1 parent 9566c15 commit c52fa71

2 files changed

Lines changed: 4 additions & 6 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,12 @@ repos:
88
- id: django-upgrade
99
args: [--target-version, "5.2"]
1010

11-
- repo: https://github.com/ambv/black
12-
rev: 25.12.0
13-
hooks:
14-
- id: black
15-
1611
- repo: https://github.com/astral-sh/ruff-pre-commit
1712
rev: v0.14.9
1813
hooks:
1914
- id: ruff-check
2015
args: ["--fix"]
16+
- id: ruff-format
2117

2218
- repo: https://github.com/asottile/pyupgrade
2319
rev: v3.21.2

cbv/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ def basic_yuml_data(self, first: bool = False) -> list[str]:
306306
child_col=(
307307
"green"
308308
if first
309-
else "white" if self.is_secondary() else "lightblue"
309+
else "white"
310+
if self.is_secondary()
311+
else "lightblue"
310312
),
311313
)
312314
)

0 commit comments

Comments
 (0)