blob: db53ce7c081bdb928dcbe7bd148d6dc0450ceb6a (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
falcon = "*"
gunicorn = "*"
jsonschema = "*"
[dev-packages]
coverage = "*"
pre-commit = "*"
pydocstyle = "<4.0"
flake8 = "*"
flake8-docstrings = "*"
flake8-bugbear = "*"
flake8-import-order = "*"
flake8-tidy-imports = "*"
flake8-todo = "*"
flake8-string-format = "*"
flake8-formatter-junit-xml = "*"
flake8-quotes = "*"
unittest-xml-reporting = "*"
[requires]
python_version = "3.7"
[scripts]
lint = "flake8"
precommit = "pre-commit install"
test = "scripts/dev.sh -c 'pipenv run coverage run -m unittest'"
testb = """
scripts/dev.sh \
--build \
--clean \
-c 'pipenv run coverage run -m unittest'
"""
report = "coverage report"
snekbox = """
gunicorn \
-w 2 \
-b 0.0.0.0:8060 \
--logger-class snekbox.GunicornLogger \
--access-logformat '%(m)s %(U)s%(q)s %(s)s %(b)s %(L)ss' \
--access-logfile - \
snekbox.api.app
"""
devsh = "scripts/dev.sh"
build = """
docker build \
-t pythondiscord/snekbox:latest \
-f docker/Dockerfile \
.
"""
buildbase = """
docker build \
-t pythondiscord/snekbox-base:latest \
-f docker/base.Dockerfile \
.
"""
buildvenv = """
docker build \
-t pythondiscord/snekbox-venv:latest \
-f docker/venv.Dockerfile \
.
"""
builddev = """
docker build \
-t pythondiscord/snekbox-venv:dev \
-f docker/venv.Dockerfile \
--build-arg DEV=1 \
.
"""
|