From 030fdd652861e1a3813b4aa8661479f31b75b07f Mon Sep 17 00:00:00 2001 From: Hannah Cushman Garland Date: Tue, 9 Jul 2024 11:46:18 -0500 Subject: [PATCH] Upgrade black in precommit, apply black --- .pre-commit-config.yaml | 2 +- councilmatic_core/views.py | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f1205ce..68ea940 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: # Black config (Python formatter) - repo: https://github.com/psf/black - rev: 22.3.0 + rev: 24.4.2 hooks: - id: black exclude: ^(councilmatic_core/migrations/) diff --git a/councilmatic_core/views.py b/councilmatic_core/views.py index 8a50b73..464bcf5 100644 --- a/councilmatic_core/views.py +++ b/councilmatic_core/views.py @@ -366,13 +366,14 @@ def get_context_data(self, **kwargs): seo.update(settings.SITE_META) if person.current_council_seat: short_name = re.sub(r",.*", "", person.name) - seo[ - "site_desc" - ] = "%s - %s representative in %s. See what %s has been up to!" % ( - person.name, - person.current_council_seat, - settings.CITY_COUNCIL_NAME, - short_name, + seo["site_desc"] = ( + "%s - %s representative in %s. See what %s has been up to!" + % ( + person.name, + person.current_council_seat, + settings.CITY_COUNCIL_NAME, + short_name, + ) ) else: seo["site_desc"] = "Details on %s, %s" % (