Skip to content

Commit

Permalink
fix docstring with literal unquoted (#5180)
Browse files Browse the repository at this point in the history
Co-authored-by: Oliver Sanders <[email protected]>
  • Loading branch information
wxtim and oliver-sanders authored Oct 6, 2022
1 parent b68c98d commit 901fa06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cylc/flow/scripts/lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ def parse_checks(check_args, ignores=None, max_line_len=None, reference=False):
regex = r"^.{" + str(max_line_len) + r"}"
if reference:
msg = (
'line > {max_line_len} characters. Max line length '
'set in pyproject.toml (default 130)'
'line > ``<max_line_len>`` characters. Max line '
' length set in pyproject.toml (default 130)'
)
else:
msg = f'line > {max_line_len} characters.'
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/scripts/test_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def test_invalid_tomlfile(tmp_path):
@pytest.mark.parametrize(
'ref, expect',
[
[True, 'line > {max_line_len} characters'],
[True, 'line > ``<max_line_len>`` characters'],
[False, 'line > 130 characters']
]
)
Expand Down

0 comments on commit 901fa06

Please sign in to comment.