Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
pip install -e ".[dev]"

- name: Lint with ruff
run: pip install ruff && ruff check src/ --target-version py310
run: pip install ruff && ruff check src/ tests/ --target-version py310
- name: Run tests
run: |
python -m pytest tests/ -v --cov=schemaforge --cov-report=term-missing
Expand Down
6 changes: 2 additions & 4 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@

import sys
import tempfile
from pathlib import Path

import pytest
from click.testing import CliRunner
from pathlib import Path

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

Expand Down Expand Up @@ -370,7 +368,7 @@ def test_check_directory_with_type_map(self):
Path(tmpdir, "schema.sql").write_text(SAMPLE_SQL)
Path(tmpdir, "schema.prisma").write_text(SAMPLE_PRISMA)

result = runner.invoke(main, [
runner.invoke(main, [
"check",
"--dir", tmpdir,
"--type-map", str(type_map),
Expand Down
Loading