-
Notifications
You must be signed in to change notification settings - Fork 9
/
devbox.json
28 lines (28 loc) · 1.35 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
{
"packages": [
"python@3.10",
"poetry@1.5",
"graphviz@8",
"pre-commit@3"
],
"env": {
"LIBRARY": "ancv"
},
"shell": {
"init_hook": [
"echo 'Running command in devbox shell...'",
"poetry install"
],
"scripts": {
"build-image": "docker build --progress=plain --tag \"$LIBRARY\"/\"$LIBRARY\":$(poetry version --short) .",
"format-check": "poetry run ruff format --check --diff",
"install-hooks": "pre-commit install --hook-type pre-push --hook-type pre-commit --hook-type commit-msg",
"lint": "poetry run ruff --verbose .",
"make-depgraph.svg": "poetry run pydeps --max-bacon=4 --cluster -T svg -o depgraph.svg \"$LIBRARY\"",
"make-github.py": "poetry run datamodel-codegen --url \"https://github.com/raw/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": "poetry run datamodel-codegen --url \"https://github.com/raw/jsonresume/resume-schema/master/schema.json\" --encoding utf-8 --input-file-type jsonschema --output resume.py",
"test": "poetry run pytest --cov=\"$LIBRARY\" --cov-report=html --cov-report=term --cov-report=xml",
"typecheck": "poetry run mypy -p \"$LIBRARY\""
}
}
}