-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (38 loc) · 933 Bytes
/
Makefile
File metadata and controls
54 lines (38 loc) · 933 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Build targets
build:
uv run maturin build
sync:
uv sync --all-extras
install: sync
uv run maturin develop
# Test targets
test: sync
uv run pytest
# Utility targets
etcd-clear:
etcdctl del "" --from-key=true
# Python formatting and linting
fmt-py: sync
uv run ruff format tests/ etcd_client.pyi
lint-py: sync
uv run ruff check tests/ etcd_client.pyi
fix-py: sync
uv run ruff format tests/ etcd_client.pyi
uv run ruff check --fix tests/ etcd_client.pyi
typecheck: sync
uv run mypy tests/ etcd_client.pyi
# Rust formatting and linting
fmt-rust:
cargo fmt
lint-rust:
cargo clippy
fix-rust:
cargo fmt
cargo clippy --fix --allow-dirty --allow-staged
# Combined targets
fmt: fmt-py fmt-rust
lint: lint-py typecheck lint-rust
fix: fix-py fix-rust
check: lint
@echo "All checks passed!"
.PHONY: build sync install test etcd-clear fmt-py lint-py fix-py typecheck fmt-rust lint-rust fix-rust fmt lint fix check