Skip to content

Commit 95e4fe1

Browse files
committed
Add black to pre-commit config and apply fixes
1 parent 362ad11 commit 95e4fe1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,9 @@ repos:
4343
# https://github.com/adamchainz/django-upgrade?tab=readme-ov-file#databases
4444
--skip, "settings_database_postgresql",
4545
]
46+
47+
- repo: https://github.com/psf/black
48+
rev: 24.10.0
49+
hooks:
50+
- id: black
51+
exclude: '(\/migrations\/)'

DjangoPlugin/tracdjangoplugin/plugins.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ def _format_changeset_link(self, formatter, ns, chgset, label, fullmatch=None):
9696
return tag.a(label, class_="changeset", href=href)
9797

9898
# Fallback to the default implementation.
99-
return super()._format_changeset_link(
100-
formatter, ns, chgset, label, fullmatch
101-
)
99+
return super()._format_changeset_link(formatter, ns, chgset, label, fullmatch)
102100

103101

104102
class PlainLoginComponent(Component):

0 commit comments

Comments
 (0)