-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathjustfile
More file actions
49 lines (37 loc) · 883 Bytes
/
justfile
File metadata and controls
49 lines (37 loc) · 883 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
#!/usr/bin/env just --justfile
set quiet
# show help
help:
just --list
# bump version and release (dry-run on test PyPI)
bump-test:
uv run semantic-release publish --upload-to-index testpypi --no-commit --no-push
# bump version and release (prod)
bump:
uv run semantic-release publish
# build package
build:
uv build
# remove temp build files
clean:
rm -Rf dist/ .pytest_cache/ .mypy_cache/ .ruff_cache/
# upload package to test repository
publish-test:
uv publish --index testpypi
# upload package to prod repository
publish:
uv publish
# install package with dependencies
sync:
uv sync
# run unit tests
test:
uv run pytest -qv --cov=openapi_parser --cov-report=term:skip-covered
# run package formatters
fmt:
uv run ruff format .
# run package linters
lint:
uv run ruff check --fix .
uv run mypy .
uv run ty check .