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" % (