-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
66 lines (54 loc) · 1.27 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
default:
@just --list
[group('package')]
build:
rm -rf dist
uv build
[group('package')]
publish-test:
rm -rf dist
uv build
uv publish --token $(op read "op://Private/Test PyPI/Token") --publish-url https://test.pypi.org/legacy/
open https://test.pypi.org/project/spacypdfreader/
[group('package')]
publish:
rm -rf dist
uv build
uv publish --token $(op read "op://Private/PyPI/Token")
open https://pypi.org/project/spacypdfreader/
[group('lint')]
format:
# Sort imports
uvx ruff check --select I --fix .
# Format code
uvx ruff format .
[group('lint')]
lint:
uvx ruff check .
[group('tests')]
test version="3.12":
uv run --python {{version}} --all-extras pytest
[group('tests')]
test-matrix:
just test 3.9
just test 3.10
just test 3.11
just test 3.12
[group('tests')]
test-pre-release-python:
# As of 2024-10-04 3.13 is failing
just test 3.13
[group('tests')]
test-gha:
gh workflow run pytest.yml --ref $(git branch --show-current)
[group('docs')]
preview-docs:
uv run mkdocs serve
[group('docs')]
publish-docs:
rm -rf site
uv run mkdocs build
uv run mkdocs gh-deploy
[group('docs')]
test-docs:
uv run --python 3.12 --all-extras pytest --doctest-modules spacypdfreader/