forked from nats-io/nats.py
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 765 Bytes
/
Makefile
File metadata and controls
41 lines (28 loc) · 765 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
REPO_OWNER=nats-io
PROJECT_NAME=nats.py
SOURCE_CODE=nats/src/nats
help:
@cat $(MAKEFILE_LIST) | \
grep -E '^[a-zA-Z_-]+:.*?##' | \
sed "s/local-//" | \
sort | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clean:
find . -name "*.py[co]" -delete
find . -name "__pycache__" -type d -delete
deps:
uv sync
format:
uv run yapf -i --recursive $(SOURCE_CODE)
uv run yapf -i --recursive nats/tests
test:
uv run yapf --recursive --diff $(SOURCE_CODE)
uv run yapf --recursive --diff nats/tests
uv run mypy
uv run ruff check $(SOURCE_CODE)
uv run pytest
ci: deps
uv run ruff check $(SOURCE_CODE)
uv run pytest -x -vv -s --continue-on-collection-errors
watch:
while true; do uv run pytest -v -s -x; sleep 10; done