-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
48 lines (39 loc) · 1.15 KB
/
justfile
File metadata and controls
48 lines (39 loc) · 1.15 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
default:
@just --list
test:
uv run pytest
uv run --directory packages/typestats-site pytest
fmt:
uv run dprint fmt
uv run ruff format
typecheck:
uv run pyrefly check
uv run --directory packages/typestats-site pyrefly check
check:
uv run ruff check
uv run ruff format --check
uv run pyrefly check
uv run dprint check
selfcheck:
uv run typestats check --strict --fail-under=100
uv run typestats check packages/typestats-site --strict --fail-under=100
update:
uv sync --upgrade
uv run dprint config update
preview *args:
uv run typestats-site preview {{ args }}; rc=$?; if [ $rc -gt 128 ]; then exit 0; else exit $rc; fi
[unix]
clean:
find . -type d \( \
-name __pycache__ \
-o -name .cache \
-o -name .pytest_cache \
-o -name .ruff_cache \
-o -name _site \
-o -name site \
-o -name dist \
-o -name '*.egg-info' \
\) -exec rm -rf {} +
[windows]
clean:
powershell -NoProfile -Command "Get-ChildItem -Directory -Recurse -Include __pycache__,.cache,.pytest_cache,.ruff_cache,_site,site,dist,*.egg-info | Remove-Item -Recurse -Force"