generated from ShigureLab/python-lib-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
52 lines (40 loc) · 924 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
40
41
42
43
44
45
46
47
48
49
50
51
52
VERSION := `poetry run python -c "import sys; from doc_pipe import __version__ as version; sys.stdout.write(version)"`
install:
poetry install
test:
poetry run pytest
just clean
fmt:
poetry run isort .
poetry run black .
lint:
poetry run pyright doc_pipe tests
poetry run ruff .
fmt-docs:
prettier --write '**/*.md'
build:
poetry build
publish:
touch doc_pipe/py.typed
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-fmt-check:
poetry run isort --check-only .
poetry run black --check --diff .
prettier --check '**/*.md'
ci-lint:
just lint
ci-test:
poetry run pytest --reruns 3 --reruns-delay 1
just clean