1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
.PHONY: install install-dev install-pre-commit test test-fast test-fast-rs unit style check docs docs-serve
ifdef UV
PIP := uv pip
else
PIP := pip
endif
install:
$(PIP) install -e .
bench: install-dev-rs-release
python -m benchmarks.bench
bench-optimize: install-dev-rs-release
python -m benchmarks.optimize
install-dev-rs-release:
cd sqlglotrs/ && python -m maturin develop -r
install-dev-rs:
@unset CONDA_PREFIX && \
cd sqlglotrs/ && python -m maturin develop
install-dev-core:
$(PIP) install -e ".[dev]"
install-dev: install-dev-core install-dev-rs
install-pre-commit:
pre-commit install
test:
SQLGLOTRS_TOKENIZER=0 python -m unittest
test-fast:
SQLGLOTRS_TOKENIZER=0 python -m unittest --failfast
test-rs:
RUST_BACKTRACE=1 python -m unittest
test-fast-rs:
RUST_BACKTRACE=1 python -m unittest --failfast
unit:
SKIP_INTEGRATION=1 SQLGLOTRS_TOKENIZER=0 python -m unittest
unit-rs:
SKIP_INTEGRATION=1 RUST_BACKTRACE=1 python -m unittest
style:
pre-commit run --all-files
check: style test test-rs
docs:
python pdoc/cli.py -o docs
docs-serve:
python pdoc/cli.py --port 8002
|