diff options
author | 2021-02-04 13:58:51 -0800 | |
---|---|---|
committer | 2021-02-04 14:50:07 -0800 | |
commit | b50c5e31278124da6329ac13d70c18de405ef53f (patch) | |
tree | e972f7cd963d4734be009103f8493fe9bd3b6ca5 | |
parent | Move development environment guide to a separate file (diff) |
Categorise and sort scripts in Pipfile
-rw-r--r-- | Pipfile | 26 |
1 files changed, 14 insertions, 12 deletions
@@ -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" |