-
Notifications
You must be signed in to change notification settings - Fork 1
/
Pipfile
37 lines (32 loc) · 1.41 KB
/
Pipfile
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
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
black = "*"
mypy = "*"
autoflake = "*"
isort = "*"
[packages]
opencv-python-headless = "*"
numpy = "*"
smalluuid = "*"
boto3 = "*"
twilio = "*"
requests = "*"
sentry-sdk = "*"
[requires]
python_version = "3.7"
[pipenv]
allow_prereleases = true
[scripts]
samples = "bash -c 'rm -f ./samples/images/*.out.jpg && PYTHONPATH=. python -m samples.process_all ./samples/images/*.jpg'"
local_samples = "bash -c 'rm -f ./samples/local/images/*.out.jpg && PYTHONPATH=. python -m samples.process_all ./samples/local/images/*-input.jpg'"
local_samples_pa = "bash -c 'rm -f ./samples/local/images/*.out.jpg && PYTHONPATH=. RESIZE=180x60 BW=1 python -m samples.process_all ./samples/local/images/*-input.jpg'"
single_sample = "bash -c 'rm -f ./samples/images/easy1.out.jpg && PYTHONPATH=. python -m samples.process_all ./samples/images/easy1.jpg'"
single_sample_pa = "bash -c 'rm -f ./samples/images/easy1.out.jpg && PYTHONPATH=. RESIZE=180x60 BW=1 python -m samples.process_all ./samples/images/easy1.jpg'"
autoflake = "autoflake --remove-unused-variables --remove-all-unused-imports --ignore-init-module-imports --exclude .serverless,node_modules,frontend ."
isort = "isort --recursive --skip .serverless --skip node_modules --skip frontend ."
black = "black ."
mypy = "mypy ."
format = "bash -c 'pipenv run autoflake && pipenv run isort && pipenv run black'"