aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
blob: 3e0174d4abff115f88fd00b514cd0db41e460675 (plain) (blame)
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
40
41
42
43
44
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
pika = "*"
docker = "*"

[dev-packages]
flask = "*"
flask-sockets = "*"
gevent = "==1.2.2"
gevent-websocket = "*"
gunicorn = "*"
pytest = "*"
pytest-cov = "*"
pytest-dependency = "*"
pre-commit = "*"
flake8 = "*"
flake8-docstrings = "*"
flake8-bugbear = "*"
flake8-import-order = "*"
flake8-tidy-imports = "*"
flake8-todo = "*"
flake8-string-format = "*"
flake8-formatter-junit-xml = "*"

[requires]
python_version = "3.6"

[scripts]
lint = "flake8"
precommit = "pre-commit install"
test = "py.test tests --cov . --cov-report term-missing -v"
report = "py.test tests --cov . --cov-report=html"
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 ."
pushbox = "docker push pythondiscord/snekbox:latest"
buildboxbase = "docker build -t pythondiscord/snekbox-base:latest -f docker/base.Dockerfile ."
pushboxbase = "docker push pythondiscord/snekbox-base:latest"
buildweb = "docker build -t pythondiscord/snekboxweb:latest -f docker/Dockerfile.webapp ."
pushweb = "docker push pythondiscord/snekboxweb:latest"