-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathJustfile
More file actions
22 lines (17 loc) · 814 Bytes
/
Justfile
File metadata and controls
22 lines (17 loc) · 814 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
python_versions := "3.11 3.12 3.13"
default:
just --list
test:
for python_version in {{ python_versions }}; do \
uv run -p $python_version python -m pytest -vv --cov strictql_postgres tests; \
done
lint:
for python_version in {{ python_versions }}; do \
uv run -p $python_version --isolated python -m ruff format --check strictql_postgres tests && uv run -p $python_version --isolated python -m ruff check strictql_postgres tests --extend-select I && uv run -p $python_version --isolated python -m mypy strictql_postgres tests;\
done
fix:
uv run python -m ruff format strictql_postgres tests; \
uv run python -m ruff check --extend-select I --fix-only strictql_postgres tests; \
install:
uv venv
uv pip install -r pyproject.toml --group test --group lint