Skip to content

Commit

Permalink
Upgrade black in precommit, apply black
Browse files Browse the repository at this point in the history
  • Loading branch information
hancush committed Jul 9, 2024
1 parent 52f4b0d commit 030fdd6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
Expand Down
15 changes: 8 additions & 7 deletions councilmatic_core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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" % (
Expand Down

0 comments on commit 030fdd6

Please sign in to comment.