diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-11 08:03:03 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-11 08:03:03 +0000 |
commit | de139943d8272773b5f19ed824d687b0232b9ba3 (patch) | |
tree | 47e73755bffd41bdde2d59d76cc595f5a1fa75d4 /qa/samples | |
parent | Adding upstream version 0.19.0~dev. (diff) | |
download | gitlint-de139943d8272773b5f19ed824d687b0232b9ba3.tar.xz gitlint-de139943d8272773b5f19ed824d687b0232b9ba3.zip |
Adding upstream version 0.19.1.upstream/0.19.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | qa/samples/user_rules/extra/extra_rules.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/qa/samples/user_rules/extra/extra_rules.py b/qa/samples/user_rules/extra/extra_rules.py index cad531b..7996590 100644 --- a/qa/samples/user_rules/extra/extra_rules.py +++ b/qa/samples/user_rules/extra/extra_rules.py @@ -1,5 +1,5 @@ -from gitlint.rules import CommitRule, RuleViolation, ConfigurationRule -from gitlint.options import IntOption, StrOption, ListOption +from gitlint.options import IntOption, ListOption, StrOption +from gitlint.rules import CommitRule, ConfigurationRule, RuleViolation class GitContextRule(CommitRule): @@ -64,9 +64,9 @@ class ConfigurableCommitRule(CommitRule): def validate(self, _): violations = [ - RuleViolation(self.id, f"int-öption: {self.options[u'int-öption'].value}", line_nr=1), - RuleViolation(self.id, f"str-öption: {self.options[u'str-öption'].value}", line_nr=1), - RuleViolation(self.id, f"list-öption: {self.options[u'list-öption'].value}", line_nr=1), + RuleViolation(self.id, f"int-öption: {self.options['int-öption'].value}", line_nr=1), + RuleViolation(self.id, f"str-öption: {self.options['str-öption'].value}", line_nr=1), + RuleViolation(self.id, f"list-öption: {self.options['list-öption'].value}", line_nr=1), ] return violations |