-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathdevbox.json
30 lines (30 loc) · 1.31 KB
/
devbox.json
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
{
"packages": [
"python@3.12",
"uv@0.4",
"ruff@0.7",
"pydeps@1.12",
"graphviz@8",
"pre-commit@3"
],
"env": {
"LIBRARY": "ancv"
},
"shell": {
"init_hook": [
"echo 'Running command in devbox shell...'",
"uv sync"
],
"scripts": {
"build-image": "docker build --progress=plain --tag \"$LIBRARY\"/\"$LIBRARY\":dev .",
"format-check": "ruff format --check --diff",
"install-hooks": "pre-commit install --hook-type pre-push --hook-type pre-commit --hook-type commit-msg",
"lint": "ruff check --verbose .",
"make-depgraph.svg": "pydeps --max-bacon=4 --cluster -T svg -o depgraph.svg \"$LIBRARY\"",
"make-github.py": "uv run datamodel-codegen --url \"https://raw.githubusercontent.com/github/rest-api-description/main/descriptions-next/api.github.com/dereferenced/api.github.com.deref.json\" --encoding utf-8 --input-file-type openapi --openapi-scopes paths --output github.py",
"make-resume.py": "uv run datamodel-codegen --url \"https://raw.githubusercontent.com/jsonresume/resume-schema/master/schema.json\" --encoding utf-8 --input-file-type jsonschema --output resume.py",
"test": "uv run pytest -vv --cov=\"$LIBRARY\" --cov-report=html --cov-report=term --cov-report=xml",
"typecheck": "uv run mypy -v -p \"$LIBRARY\""
}
}
}