-
Notifications
You must be signed in to change notification settings - Fork 3
/
Pipfile
67 lines (63 loc) · 2.18 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
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
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
apispec = "==4.0.0"
bunch = "==1.0.1"
dicttoxml = "==1.7.4"
dpath = "==2.0.1"
emoji = "==0.6.0"
falcon-apispec = "==0.3.0"
falcon-auth = "==1.1.0"
falcon-elastic-apm = "==0.1.1"
falcon-require-https = "==0.1.0"
falcon = "==2.0.0"
jproperties = "==2.1.1"
loguru = ">=0.6.0"
marshmallow = "==3.4.0"
msgpack = "==1.0.0"
psutil = "==5.6.7"
requests = ">=2.24.0"
rich = "==9.2.0"
swagger-ui-py = "==0.2.0"
toolz = "==0.10.0"
waitress = "==2.1.2"
xmltodict = "==0.12.0"
Pint = "==0.11"
PyJWT = {version = "==2.4.0", extras = ["crypto"]}
PyYAML = "==5.4"
[dev-packages]
autopep8 = "*" # https://github.com/hhatto/autopep8
black = "*" # https://github.com/psf/black
flake8 = "*" # https://flake8.pycqa.org
mccabe = "*" # https://github.com/PyCQA/mccabe
# pycallgraph = "*" # https://pycallgraph.readthedocs.io/en/master/
pycodestyle = "*" # https://github.com/PyCQA/pycodestyle
pyflakes = "*" # https://github.com/PyCQA/pyflakes
pylint = "*" # https://pylint.org/Update requests version
setuptools = "==70.0.0" # for pycallgraph
vprof = "*" # https://github.com/nvdv/vprof
watchdog = {extras = ["watchmedo"], version = "*"}
[requires]
python_version = "3.8"
[scripts]
# program
autorestart = "bash scripts/autorestart.sh"
requirements = "bash scripts/requirements.sh"
start = "bash scripts/start.sh"
# dev
changelog = "bat CHANGELOG.md"
clean-gt-action="bash scripts/clean-gh-action.sh"
codestyle = "find . -iname '*.py' -exec pycodestyle --exclude='./.venv/*' --first {} \\;"
complexity = "find . -iname '*.py' -exec python -m mccabe --min=10 {} \\;"
error-check = "python3 -m pyflakes ."
format-black = "black -t py38 --line-length 79 ./"
format-pep8 = "find . -iname '*.py' -exec autopep8 --exclude='./.venv/*' --in-place --aggressive --aggressive {} \\;"
graph = "pycallgraph ./ --output=dev/graph.svg"
linter = "find . -iname '*.py' -exec pylint --exclude='./.venv/*' {} \\;"
profiler-start = "vprof -c cmh ./main.py --output-file dev/profiler.json"
profiler-view = "vprof --input-file dev/profiler.json"
requirements-dev = "bash scripts/requirements-dev.sh"
security-scan = "docker scan cnit_ml"
style-guide = "flake8 . --exclude=.venv"