-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
44 lines (35 loc) · 1.53 KB
/
justfile
File metadata and controls
44 lines (35 loc) · 1.53 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
# SPDX-License-Identifier: Apache-2.0
# Copyright 2026 Latchfield Technologies http://latchfield.com
default:
@just --list --justfile {{justfile()}}
# Python versions from pyvers.py script
py_vers_all := `python3 utils/pyvers.py -a`
py_vers_lowest := `python3 utils/pyvers.py -m`
warm_uv_cache:
@echo 'Warming package cache for Python versions: {{py_vers_all}}\n'
@for version in {{py_vers_all}}; do \
echo '{{BOLD + CYAN}}UV sync with Python'" $version"'{{NORMAL}}'; \
uv run --isolated --python $version --all-extras python3 --version; \
echo ; \
done
@echo '{{BOLD + CYAN}}UV sync with lowest-supported versions with Python'" {{py_vers_lowest}}"'{{NORMAL}}'
@uv run --isolated --python {{py_vers_lowest}} --resolution lowest-direct --all-extras python3 --version
test *args:
@pytest "$@"
test_pyvers *args:
@echo 'Testing with Python versions: {{py_vers_all}}\n'
@for version in {{py_vers_all}}; do \
echo '{{BOLD + CYAN}}Testing with Python'" $version"'{{NORMAL}}'; \
uv run --isolated --python $version --all-extras pytest -q --no-cov -o addopts="" "$@"; \
echo ; \
done
@echo '{{BOLD + CYAN}}Testing lowest-supported versions with Python'" {{py_vers_lowest}}"'{{NORMAL}}'
@uv run --isolated --python {{py_vers_lowest}} --resolution lowest-direct --all-extras pytest -q --no-cov -o addopts=""
check:
ruff check src/
pyright src/
deptry src/
bandit src/
clean_all:
rm -rf "${WORKSPACE}/dist"
rm -rf "${HOME}/.cache/actcache/cache/"