Skip to content

Commit 797b362

Browse files
committed
Add black to pre-commit config and apply fixes
1 parent aa39d56 commit 797b362

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
@@ -35,3 +35,9 @@ repos:
3535
hooks:
3636
- id: django-upgrade
3737
args: [--target-version, "5.0"]
38+
39+
- repo: https://github.com/psf/black
40+
rev: 24.10.0
41+
hooks:
42+
- id: black
43+
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)