This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
generated from ShigureLab/python-lib-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjustfile
77 lines (65 loc) · 1.69 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
VERSION := "3.0.0-alpha.1"
fmt:
poetry run ruff format .
fmt-docs:
prettier --write '**/*.md'
check:
poetry run pyright \
tests \
paddle-stubs/_typing/* \
paddle-stubs/hapi/hub.pyi \
paddle-stubs/hapi/model.pyi \
paddle-stubs/hapi/model_summary.pyi \
paddle-stubs/optimizer/* \
paddle-stubs/nn/layer/* \
paddle-stubs/vision/models/* \
paddle-stubs/vision/transforms/transforms.pyi \
paddle-stubs/hub.pyi \
paddle-stubs/linalg.pyi \
paddle-stubs/regularizer.pyi \
paddle-stubs/signal.pyi \
paddle-stubs/sysconfig.pyi
lint:
poetry run ruff check --fix \
tests \
paddle-stubs/_typing/* \
paddle-stubs/hapi/hub.pyi \
paddle-stubs/hapi/model.pyi \
paddle-stubs/hapi/model_summary.pyi \
paddle-stubs/optimizer/* \
paddle-stubs/nn/layer/* \
paddle-stubs/vision/models/* \
paddle-stubs/vision/transforms/transforms.pyi \
paddle-stubs/hub.pyi \
paddle-stubs/linalg.pyi \
paddle-stubs/regularizer.pyi \
paddle-stubs/signal.pyi \
paddle-stubs/sysconfig.pyi
build:
poetry build
release:
@echo 'Tagging v{{VERSION}}...'
git tag "v{{VERSION}}"
@echo 'Push to GitHub to trigger publish process...'
git push --tags
publish:
poetry publish --build
git tag "v{{VERSION}}"
git push --tags
just clean-builds
clean:
find . -name "*.pyc" -print0 | xargs -0 rm -f
rm -rf .pytest_cache/
rm -rf .mypy_cache/
find . -maxdepth 3 -type d -empty -print0 | xargs -0 -r rm -r
clean-builds:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
ci-install:
poetry install --no-interaction --no-root
ci-fmt-check:
poetry run ruff format --check --diff .
prettier --check '**/*.md'
ci-lint:
just lint