-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathjustfile
50 lines (40 loc) · 1.59 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
set shell := ['pwsh', '-Command']
set dotenv-load
dev := '. ./dev.ps1; Initialize-Shell; '
devpy := dev + 'dev'
sync-contrib:
{{dev}} iuv -Sync -Update
build-docs:
{{dev}} Build-Docs
boilercv-preview-write file $BOILERCV_PREVIEW='true' $BOILERCV_WRITE='true':
{{dev}} iuv python {{file}}
boilercv-debug-preview-write file $BOILERCV_DEBUG='true' $BOILERCV_PREVIEW='true' $BOILERCV_WRITE='true':
{{dev}} iuv python {{file}}
boilercv-preview preview $BOILERCV_PREVIEW='true':
{{dev}} python -m boilercv_pipeline.previews.{{preview}}
update-binder:
(uv pip compile --config-file requirements/binder_uv.toml \
--constraint requirements/binder_constraints.in \
--override requirements/binder_overrides.txt \
--exclude-newer (Get-Date).ToUniversalTime().ToString('o') \
requirements/binder.in \
) -Replace 'opencv-python', 'opencv-python-headless' | Set-Content requirements.txt
dvc-dag:
{{dev}} (iuv dvc dag --md) -Replace (mermaid, '{mermaid}') | \
Set-Content docs/_static/dag.md ;\
markdownlint-cli2 docs/_static/dag.md
generate-correlations file correlations:
{{dev}} iuv python {{file}} {{correlations}}
generate-correlation-docs:
{{dev}} iuv -m boilercv_pipeline.equations.make_docs
patch-notebooks:
{{devpy}} patch-notebooks
pipeline-sync-dvc:
{{dev}} boilercv-pipeline sync-dvc
remove-empty-data-folders:
Get-ChildItem -Path './data', 'docs/data' -Recurse -Directory | \
Where-Object { \
( Get-ChildItem -Path $_ -Recurse -File | Measure-Object ).Count -eq 0 \
} | Remove-Item -Recurse -Force
sync-local-dev-configs:
{{devpy}} sync-local-dev-configs