blob: 1aa46a8adb094c9cd631de5211f673d98b5e324e (
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
|
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
falcon = "*"
gunicorn = "*"
jsonschema = "*"
[dev-packages]
coverage = "*"
pre-commit = "*"
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'"
report = "coverage html"
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"
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"
|