aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-05-30 19:52:07 +0200
committerGravatar GitHub <[email protected]>2018-05-30 19:52:07 +0200
commit7f756fd7f709bc74b3eb558dccb44607844fedb4 (patch)
tree5844b9023466373233094a5de2ae3c192dd9b67b /Pipfile
parenttypo in debug output (diff)
secure python execution
make snekbox a class adds nsjail 2.5 (compiled on alpine 3.7) execute python code via nsjail
Diffstat (limited to 'Pipfile')
-rw-r--r--Pipfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Pipfile b/Pipfile
index c576744..f03888d 100644
--- a/Pipfile
+++ b/Pipfile
@@ -14,12 +14,16 @@ gevent = "==1.2.2"
gevent-websocket = "*"
gunicorn = "*"
"flake8" = "*"
+pytest = "*"
+pytest-cov = "*"
+pytest-dependency = "*"
[requires]
python_version = "3.6"
[scripts]
lint = "flake8"
+test = "py.test tests --cov . --cov-report term-missing -v"
snekbox = "python snekbox.py"
snekweb = "gunicorn -w 2 -b 0.0.0.0:5000 --log-level debug -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker snekweb:app"
buildbox = "docker build -t pythondiscord/snekbox:latest -f docker/Dockerfile ."