Skip to content

Commit c275dcb

Browse files
author
DevForge Engineer
committed
fix(ci): extend ruff lint to tests/ and fix 3 lint errors in test_cli.py
1 parent 27a5821 commit c275dcb

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
pip install -e ".[dev]"
3333
3434
- name: Lint with ruff
35-
run: pip install ruff && ruff check src/ --target-version py310
35+
run: pip install ruff && ruff check src/ tests/ --target-version py310
3636
- name: Run tests
3737
run: |
3838
python -m pytest tests/ -v --cov=schemaforge --cov-report=term-missing

tests/test_cli.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@
77

88
import sys
99
import tempfile
10-
from pathlib import Path
11-
12-
import pytest
1310
from click.testing import CliRunner
11+
from pathlib import Path
1412

1513
sys.path.insert(0, str(Path(__file__).parent.parent / "src"))
1614

@@ -370,7 +368,7 @@ def test_check_directory_with_type_map(self):
370368
Path(tmpdir, "schema.sql").write_text(SAMPLE_SQL)
371369
Path(tmpdir, "schema.prisma").write_text(SAMPLE_PRISMA)
372370

373-
result = runner.invoke(main, [
371+
runner.invoke(main, [
374372
"check",
375373
"--dir", tmpdir,
376374
"--type-map", str(type_map),

0 commit comments

Comments
 (0)