-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
37 lines (28 loc) · 867 Bytes
/
justfile
File metadata and controls
37 lines (28 loc) · 867 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
# don't clear screens after tests, regardless of current environment
unexport UTR_CLEAR_PRE_RUN
_default:
just --list
@test *options:
uv run -- pytest {{options}}
# test against all supported python verions
@tox:
# run a single version with tox -q -e py39
uv run -- tox -p
@lint:
uv run -- ruff check --quiet .
uv run -- ruff format --check --quiet .
# lint&fix files, useful for a pre-commit hook
@lint-fix:
uv run -- ruff check --fix --quiet .
uv run -- ruff format --quiet .
@typecheck:
uv run -- pyright -p pyproject.toml
# perform all checks, but don't change any files
@validate: tox lint typecheck
@release: validate
rm -rf dist
uv sync --group release
uv run -- python -m build
uv run -- python -m twine check dist/*
# give upload api key at runtime
uv run -- python -m twine upload dist/*