-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
50 lines (37 loc) · 1.24 KB
/
justfile
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
set dotenv-load
port := "8000"
py := "3.13"
source := "meltano-hub/_data"
build: update pre-commit typing coverage
build-db $ONLY_GROUP="build":
uv run --python={{py}} python -I build.py {{source}}
[group('update')]
update: gha-update pre-commit-autoupdate lock
[group('update')]
gha-update:
uvx --python {{py}} gha-update
[group('update')]
pre-commit-autoupdate:
uvx --python={{py}} pre-commit autoupdate
[group('update')]
lock:
uv lock --upgrade
serve: build-db
uv run --python={{py}} --no-dev granian --port={{port}} hub_api.main:app
[group('test')]
pre-commit:
-uvx --python={{py}} --with pre-commit-uv pre-commit run --all-files
[group('test')]
typing:
uv run --python={{py}} mypy src tests
[group('test')]
test $ONLY_GROUP="tests": build-db
uv run --python={{py}} pytest
[group('test')]
coverage $ONLY_GROUP="tests": build-db
uv run --python={{py}} coverage run -m pytest -v
uv run --python={{py}} coverage combine --keep
uv run --python={{py}} coverage report --fail-under=100 --show-missing
[group('test')]
api host="127.0.0.1": build-db
uvx --python={{py}} --from=schemathesis st run --checks all --base-url http://{{host}}:{{port}} --experimental=openapi-3.1 http://{{host}}:{{port}}/openapi.json