-
Notifications
You must be signed in to change notification settings - Fork 8
/
justfile
72 lines (58 loc) · 1.73 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
default:
@just --list
# ------------------------------------------------------------------------------
# Packaging
# ------------------------------------------------------------------------------
[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/spacytextblob/
[group('package')]
publish:
rm -rf dist
uv build
uv publish --token $(op read "op://Private/PyPI/Token")
open https://pypi.org/project/spacytextblob/
# ------------------------------------------------------------------------------
# Lint
# ------------------------------------------------------------------------------
[group('lint')]
format:
# Sort imports
uvx ruff check --select I --fix .
# Format code
uvx ruff format .
[group('lint')]
lint:
uvx ruff check .
# ------------------------------------------------------------------------------
# Testing
# ------------------------------------------------------------------------------
[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-12 3.13 is failing
just test 3.13
[group('tests')]
test-gha:
gh workflow run pytest.yml --ref $(git branch --show-current)
# ------------------------------------------------------------------------------
# Docs
# ------------------------------------------------------------------------------
[group('docs')]
preview-docs:
uv run mkdocs serve