-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevbox.json
39 lines (39 loc) · 1.38 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
31
32
33
34
35
36
37
38
39
{
"packages": ["[email protected]"],
"shell": {
"init_hook": ["source $VENV_DIR/bin/activate"],
"scripts": {
"install": [
"bash .scripts/00-update-pip.sh",
"bash .scripts/10-install-pyright.sh",
"bash .scripts/20-install-pip-tools.sh",
"bash .scripts/30-install-requirements.sh",
"bash .scripts/99-install-project.sh"
],
"test": ["pytest tests/"],
"test:unit": ["pytest tests/test_hexagon"],
"test:adapters": ["pytest tests/test_adapters"],
"test:cli": ["pytest tests/test_cli"],
"build": [
"python -m build --no-isolation .",
"python -m pip install . --target dist/releaser",
"cp src/releaser/__main__.py dist/releaser/__main__.py",
"python -m zipapp -p '/usr/bin/env python' ./dist/releaser -o dist/releaser.pyz"
],
"clean": ["rm -rf dist/ build/"],
"reinstall": ["rm -rf *.egg-info/", "devbox run install"],
"lint": ["flake8 src tests"],
"format": ["black src tests", "isort src tests"],
"format:check": ["black --check src tests", "isort --check src tests"],
"typecheck": ["pyright src tests"],
"lock": ["pip-compile pyproject.toml --extra=dev -o requirements.txt"],
"precommit": [
"black src tests",
"isort src tests",
"flake8 src tests",
"pyright src tests",
"pytest tests/"
]
}
}
}