diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2076d158..fad7a52a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,24 +3,14 @@ default_language_version: python: python3.13 repos: - repo: https://github.com/adamchainz/django-upgrade - rev: 1.24.0 + rev: 1.29.1 hooks: - id: django-upgrade args: [--target-version, "5.2"] - - repo: https://github.com/ambv/black - rev: 24.4.2 - hooks: - - id: black - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.7 - hooks: - - id: ruff - - - repo: https://github.com/asottile/pyupgrade - rev: v3.19.1 + rev: v0.14.9 hooks: - - id: pyupgrade - args: - - --py313-plus + - id: ruff-check + args: ["--fix"] + - id: ruff-format diff --git a/cbv/models.py b/cbv/models.py index dddae0d3..7090bf85 100644 --- a/cbv/models.py +++ b/cbv/models.py @@ -306,7 +306,9 @@ def basic_yuml_data(self, first: bool = False) -> list[str]: child_col=( "green" if first - else "white" if self.is_secondary() else "lightblue" + else "white" + if self.is_secondary() + else "lightblue" ), ) )