-
Notifications
You must be signed in to change notification settings - Fork 2
/
justfile
57 lines (45 loc) · 1.66 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
set shell := ['pwsh', '-Command']
set dotenv-load
pipeline := 'boilercv_pipeline'
devpy := 'dev'
dev:
. ./dev.ps1
_env-boilercv-debug:
$Env:BOILERCV_DEBUG = $True
_env-boilercv-preview:
$Env:BOILERCV_PREVIEW = $True
_env-boilercv-write:
$Env:BOILERCV_WRITE = $True
boilercv-preview-write file: _env-boilercv-preview _env-boilercv-write
iuv python {{file}}
boilercv-debug-preview-write file: _env-boilercv-debug _env-boilercv-preview _env-boilercv-write
iuv python {{file}}
boilercv-preview preview: _env-boilercv-preview
iuv -m {{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
hide-notebook-inputs: dev
iuv -m {{devpy}}.docs.patch_nbs
pipeline-sync-dvc: dev
iuv -m {{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-contrib: dev
iuv -Sync -Update
sync-local-dev-configs: dev
{{devpy}} sync-local-dev-configs