Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryGessau committed Nov 23, 2023
1 parent 6388009 commit 496150e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/rules/test_quoted_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ class QuotedKeysTestConfig:
conf_default = f"{rule_id}: {{check-keys: true}}"

def conf(self, options):
conf_with_options = f"{self.rule_id}:\n"
conf_with_options += f" check-keys: true\n"
conf_with_options = (f"{self.rule_id}:\n"
" check-keys: true\n")
for option in options:
conf_with_options += f" {option}\n"
return conf_with_options
Expand Down
6 changes: 3 additions & 3 deletions yamllint/rules/key_quoted_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,6 @@ def check(conf, token, prev, next, nextnext, context):
msg = quoted_strings.get_msg(qs_conf, token, prev, next, nextnext, context)
if msg is not None:
yield LintProblem(
token.start_mark.line + 1,
token.start_mark.column + 1,
msg)
token.start_mark.line + 1,
token.start_mark.column + 1,
msg)

0 comments on commit 496150e

Please sign in to comment.