aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-02-04 13:58:51 -0800
committerGravatar MarkKoz <[email protected]>2021-02-04 14:50:07 -0800
commitb50c5e31278124da6329ac13d70c18de405ef53f (patch)
treee972f7cd963d4734be009103f8493fe9bd3b6ca5
parentMove development environment guide to a separate file (diff)
Categorise and sort scripts in Pipfile
-rw-r--r--Pipfile26
1 files changed, 14 insertions, 12 deletions
diff --git a/Pipfile b/Pipfile
index 2e86b25..bc504e2 100644
--- a/Pipfile
+++ b/Pipfile
@@ -30,8 +30,15 @@ pydocstyle = "~= 5.1"
python_version = "3.9"
[scripts]
+eval = "python -m snekbox"
+snekbox = "gunicorn -c config/gunicorn.conf.py snekbox.api.app"
+
+# Linting
lint = "pre-commit run --all-files"
precommit = "pre-commit install"
+
+# Testing
+report = "coverage report"
test = "sh scripts/dev.sh -c 'pipenv run coverage run -m unittest'"
testb = """
sh scripts/dev.sh \
@@ -39,22 +46,17 @@ testb = """
--clean \
-c 'pipenv run coverage run -m unittest'
"""
-report = "coverage report"
-snekbox = "gunicorn -c config/gunicorn.conf.py snekbox.api.app"
-eval = "python -m snekbox"
-devsh = "sh scripts/dev.sh"
-protoc = "sh scripts/protoc.sh"
-build = """
- docker build \
- -t ghcr.io/python-discord/snekbox:latest \
- -f Dockerfile \
- .
-"""
+
+# Docker
+build = "docker build -t ghcr.io/python-discord/snekbox:latest ."
builddev = """
docker build \
-t ghcr.io/python-discord/snekbox-venv:dev \
- -f Dockerfile \
--target venv \
--build-arg DEV=1 \
.
"""
+devsh = "sh scripts/dev.sh"
+
+# Other
+protoc = "sh scripts/protoc.sh"