Skip to content

Commit a5ed304

Browse files
committed
Add black to pre-commit config and apply fixes
1 parent 9490114 commit a5ed304

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
@@ -38,3 +38,9 @@ repos:
3838
hooks:
3939
- id: django-upgrade
4040
args: [--target-version, "5.0"]
41+
42+
- repo: https://github.com/psf/black
43+
rev: 24.10.0
44+
hooks:
45+
- id: black
46+
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)