-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathJustfile
39 lines (29 loc) · 884 Bytes
/
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
default: install lint test
install:
uv lock --upgrade
uv sync --all-extras --all-packages --frozen
install-ci package:
uv lock --upgrade
uv sync --all-extras --package {{ package }} --frozen
lint:
uv run ruff format .
uv run ruff check . --fix
uv run mypy .
lint-ci:
uv run ruff format . --check
uv run ruff check . --no-fix
uv run mypy .
test *args:
uv run pytest {{ args }}
test-core *args:
uv run --directory=packages/modern-di pytest {{ args }}
test-fastapi *args:
uv run --directory=packages/modern-di-fastapi pytest {{ args }}
test-litestar *args:
uv run --directory=packages/modern-di-litestar pytest {{ args }}
test-faststream *args:
uv run --directory=packages/modern-di-faststream pytest {{ args }}
publish package:
rm -rf dist
uv build --package {{ package }}
uv publish --token $PYPI_TOKEN