Skip to content

Commit 327a227

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
1 parent 60ce111 commit 327a227

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_mcp/test_flake8_runner.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
"""Tests for the flake8 runner used by the MCP server."""
22

3-
43
from wemake_python_styleguide.mcp.flake8_runner import (
54
_get_explanation, # noqa: PLC2701
65
_parse_violations, # noqa: PLC2701

tests/test_mcp/test_server.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ def test_wps_violation_has_explanation(self):
3737
"""WPS violations include an explanation and link."""
3838
result = json.loads(lint('print("hello")\n'))
3939
wps_violations = [
40-
v for v in result['violations']
41-
if v['code'].startswith('WPS')
40+
v for v in result['violations'] if v['code'].startswith('WPS')
4241
]
4342
assert len(wps_violations) > 0
4443
for violation in wps_violations:

0 commit comments

Comments
 (0)