-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathJustfile
More file actions
52 lines (41 loc) · 1.08 KB
/
Justfile
File metadata and controls
52 lines (41 loc) · 1.08 KB
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
@_:
just --list
# Run the full tests suite via nox
nox:
uvx --with "nox>=2021.10.9" nox
# Bump the version from x.y.z to x.(y+1).0
bump-minor:
uvx bumpver update --tag final --minor
# Bump the version from x.y.z to x.y.(z+1)
bump-patch:
uvx bumpver update --tag final --patch
# Run pytest
[group('qa')]
test:
uv run --extra all pytest
# Test typing with mypy (we want this to succeed)
[group('qa')]
mypy:
uv run --extra all mypy src/ tests/
# Optionally test with pyright (we don't aim yet)
[group('qa')]
pyright:
uv run --python 3.12 --extra all --with pyright pyright
# Run all the pre-commit checks on the whole code-base
pre-commit:
uvx pre-commit run --all
# Create a wheel
build:
rm -rf dist/
uv build
rm -rf src/physt.egg-info
# Publish to pypi.org
publish: build
uv publish
# Run the project example in the CLI
examples:
uv run --extra all python -m physt.examples
# Build the spinx documentation
docs:
cd docs && uv run --extra all sphinx-apidoc -o . ../src/physt
uv run --extra all sphinx-build -b html docs/ docs/_build/html