aboutsummaryrefslogtreecommitdiffstats
path: root/Pipfile
blob: 08a51954e857d9f539e55b41fe295cf50ce93c9d (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]
django = "*"
django-hosts = "*"

[dev-packages]
"flake8" = "*"
"flake8-bugbear" = "*"
"flake8-bandit" = "*"
"flake8-import-order" = "*"
"flake8-tidy-imports" = "*"
"flake8-string-format" = "*"
libsass = "*"

[requires]
python_version = "3.7"

[scripts]
build = "docker build -t pythondiscord/site:latest -f docker/Dockerfile ."
buildci = "docker build -t pythondiscord/site-ci:latest -f docker/ci.Dockerfile ."
buildbase = "docker build -t pythondiscord/site-base:latest -f docker/Dockerfile.base ."

buildjs = "gulp"
#buildscss = "python scss.py scss/pysite:scss/pysite/style.scss:static/css/style.css scss/uikit:scss/uikit/uikit_blurple.scss:static/css/uikit_blurple.css"

clean = "rm -rf __pycache__ htmlcov .coverage .pytest_cache"
fixjs = "eslint static/js --fix"
#start = "gunicorn -w 12 -b 0.0.0.0:10012 -c gunicorn_config.py --log-level info -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker app:app"

lint = "python -m flake8"
lintjs = "eslint js/src"
lintscss = "scss-lint scss/pysite"

push = "docker push pythondiscord/site:latest"
pushbase = "docker push pythondiscord/site-base:latest"
pushci = "docker push pythondiscord/site-ci:latest"

#rundev = "python app.py"
#test = "py.test tests --cov pysite --cov-report term-missing -v"