Skip to content

Commit 6ece500

Browse files
Fix ISC004 from ruff 0.16 and use ruff-check hook id
Wrap the implicitly concatenated string in parentheses so ruff's ISC004 does not flag it as a possibly missing comma. Also replace the deprecated 'ruff' hook alias with 'ruff-check'.
1 parent b3211fd commit 6ece500

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

‎.pre-commit-config.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repos:
1111
- repo: https://github.com/astral-sh/ruff-pre-commit
1212
rev: "a56c0b927e6465d37cae3e97d35d4d18ab2b96cd" # frozen: v0.16.9
1313
hooks:
14-
- id: ruff
14+
- id: ruff-check
1515
args: [ --fix ]
1616
- id: ruff-format
1717
- repo: https://github.com/astral-sh/uv-pre-commit

‎tests/generation/test_generate_missing.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,10 @@ def test_missing_steps():
7777

7878
result.stdout.fnmatch_lines(
7979
[
80-
'Step Given "I have a custom bar" is not defined in the scenario '
81-
'"Code is generated for scenario steps which are not yet defined(implemented)" *'
80+
(
81+
'Step Given "I have a custom bar" is not defined in the scenario '
82+
'"Code is generated for scenario steps which are not yet defined(implemented)" *'
83+
)
8284
]
8385
)
8486

0 commit comments

Comments
 (0)