Skip to content

Commit dbc2516

Browse files
committed
style: fix ruff lint and format issues
Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ralph Bean <rbean@redhat.com>
1 parent 0266479 commit dbc2516

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

gitlint_rules/forbidden_type_scope.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def validate(self, commit):
4545
RuleViolation(
4646
self.id,
4747
f'"{ctype}({scope})" pollutes release notes with non-user-facing changes. '
48-
f"Use \"{suggestion}: ...\" instead.",
48+
f'Use "{suggestion}: ..." instead.',
4949
line_nr=1,
5050
)
5151
]

gitlint_rules_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""Tests for the ForbiddenTypeScope gitlint rule."""
22

33
import pytest
4+
from gitlint.rules import RuleViolation
45

56
from gitlint_rules.forbidden_type_scope import ForbiddenTypeScope
6-
from gitlint.rules import RuleViolation
77

88

99
class FakeCommit:

0 commit comments

Comments
 (0)