forked from lance-format/lance
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (26 loc) · 707 Bytes
/
Makefile
File metadata and controls
33 lines (26 loc) · 707 Bytes
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
ifeq ($(CI), true)
PYTEST_ARGS = -vvv -s -W error::DeprecationWarning -W error::FutureWarning --durations=30
else
PYTEST_ARGS = -vvv -s -W error::DeprecationWarning -W error::FutureWarning
endif
test:
pytest $(PYTEST_ARGS) python/tests
.PHONY: test
integtest:
pytest --run-integration $(PYTEST_ARGS) python/tests
.PHONY: integtest
format:
make format-python && cargo fmt
.PHONY: format
format-python:
black python && isort python
.PHONY: format-python
lint:
make lint-python && make lint-rust
.PHONY: lint
lint-python:
black --check python && isort --check-only python && ruff python
.PHONY: lint-python
lint-rust:
cargo fmt -- --check && cargo clippy -- -D warnings
.PHONY: lint-rust