Skip to content

Commit da2dbbd

Browse files
committed
chore: fix ruff lint errors in tests
- test_budget.py: remove unused pytest import, rename l -> line (E741) - test_extractor_determinism.py: remove unused ast import
1 parent bcd2f10 commit da2dbbd

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

tests/test_budget.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
- Add a clear truncation note telling user how to get full output
1010
- Be disabled by --verbose and --budget 0
1111
"""
12-
import pytest
1312
from pathlib import Path
1413
from typer.testing import CliRunner
1514

@@ -80,7 +79,7 @@ def test_project_structure_cut_first(self):
8079
assert "## Frontend" in result
8180
assert "## Architecture" in result
8281
# Project Structure should be cut or heavily truncated
83-
project_lines = [l for l in result.splitlines() if "big tree" in l]
82+
project_lines = [line for line in result.splitlines() if "big tree" in line]
8483
assert len(project_lines) < 30, "Project Structure should be cut under budget"
8584

8685
def test_tribal_knowledge_always_preserved(self):

tests/test_extractor_determinism.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ def test_no_list_set_in_extractor_source(self):
116116
list(set(...)) produces non-deterministic iteration order due to Python
117117
hash randomization. Always use sorted(set(...)) instead.
118118
"""
119-
import ast
120119
from pathlib import Path
121120

122121
source = (Path(__file__).parent.parent / "saar" / "extractor.py").read_text()

0 commit comments

Comments
 (0)