-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathJustfile
More file actions
74 lines (61 loc) · 1.99 KB
/
Justfile
File metadata and controls
74 lines (61 loc) · 1.99 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
set export
# Configure shell for Windows.
set windows-shell := ["pwsh", "-NoLogo", "-Command"]
# Lists all targets
[private]
default:
@just --list
# Run static analysis on all code.
[group('Static Analysis')]
check-all: check-python
# Fix static analysis issues for all code.
[group('Static Analysis')]
fix-all: fix-python
# Test dotslash feature with automated test located at devcontainer-features/test/dotslash/test.sh.
[group('Development Container Feature')]
test-feature-autogenerated:
#!/usr/bin/env bash
set -euo pipefail
base_images=(
debian:latest
mcr.microsoft.com/devcontainers/base:ubuntu
ubuntu:latest
)
for base_image in ${base_images[@]}; do
devcontainer features test \
--base-image debian:latest \
--features dotslash \
--project-folder devcontainer-features \
--skip-scenarios
done
# Test dotslash feature with scenarios defined in devcontainer-features/test/dotslash/scenarios.json.
[group('Development Container Feature')]
test-feature-scenarios:
#!/usr/bin/env bash
set -euo pipefail
devcontainer features test \
--features dotslash \
--project-folder devcontainer-features \
--skip-autogenerated \
--skip-duplicated
# Run static analysis on the Python package.
[group('Downstream')]
[working-directory: 'python']
check-python:
uv run --no-project --with-requirements requirements-fmt.txt -- ufmt diff src tests
uv run --no-project --with-requirements requirements-fmt.txt -- ufmt check src tests
# Fix static analysis issues for the Python package.
[group('Downstream')]
[working-directory: 'python']
fix-python:
uv run --no-project --with-requirements requirements-fmt.txt -- ufmt format src tests
# Test the Python package.
[group('Downstream')]
[working-directory: 'python']
test-python DOTSLASH_VERSION="latest":
uv run --reinstall --isolated --no-editable --with pytest pytest
# Build the Python distributions.
[group('Downstream')]
[working-directory: 'python']
build-python DOTSLASH_VERSION="latest":
uv build