-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
134 lines (120 loc) · 2.96 KB
/
pyproject.toml
File metadata and controls
134 lines (120 loc) · 2.96 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
[tool.poetry]
name = "eeflows"
version = "1.0"
description = "eeflows"
authors = ["Lizaveta Miasayedava <effie.mias@gmail.com>"]
repository = ""
# NOTE:
# without this explicit reference to PyPI, poetry may raise exception "PackageNotFound".
[[tool.poetry.source]]
name = "the_pypi"
url = "https://pypi.org/simple"
default = true
[tool.poetry.dependencies]
python = "^3.8"
boto3 = "==1.*"
Django = "==2.2.*"
django-crispy-forms = "==1.8.*"
django-environ = "*"
django-redis = "==4.11.*"
"django-storages" = "==1.7.*"
gunicorn = "==20.*"
# If you change the docker base image to be non-alpine
# This can be changed to psycopg2-binary to get advantage from
# using wheels
"psycopg2-binary" = "2.8.6"
pyyaml = "==5.*"
"sentry-sdk" = "==0.16.*"
redis = "==3.*"
djangorestframework = "==3.9.*"
djangorestframework_simplejwt = "==4.3.*"
django-cors-headers = "==3.0.*"
django-rest-swagger = "==2.2.0"
django-filter = "==2.1.*"
tg-react = "*"
pandas = ">=0.23"
scikit-learn = "*"
xlrd = ">=1.0.0"
openpyxl = "*"
dask = {version = "*", extras = ["complete"]}
django-constance = "*"
tg-utils = {version = "*", extras = ["model-hash"]}
[tool.poetry.dev-dependencies]
black = "==20.8b1"
django-debug-toolbar = "*"
# Testing & quality tools
coverage = "*"
ipdb = "*"
isort = "==4.*"
# Note prospector is very picky about its dependencies,
# avoid specifying versions for pylint/pylint-django/astroid
# and let prospector determine which versions work together
prospector = "==1.2.*"
pytest = "==6.*"
pytest-django = "*"
pylint-django = "*"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"
[tool.black]
# Enable specific Python version if necessary:
# target-version = ['py38']
line-length = 88
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.mypy_cache
| \.tox
| \.venv
| _build
| build
| dist
| docs
)/
| local.py
| local_test.py
)
'''
[tool.isort]
skip = "settings/local.py,settings/local_test.py,eeflows/wsgi.py"
skip_glob = "node_modules"
line_length = '88'
atomic = 'true'
multi_line_output = '3'
include_trailing_comma = 'true'
known_django = "django"
known_pytest = "pytest"
known_first_party = "accounts,eeflows,settings"
lines_between_types = '0'
sections = "FUTURE,STDLIB,DJANGO,PYTEST,THIRDPARTY,FIRSTPARTY,LOCALFOLDER"
lines_after_imports = '2'
force_alphabetical_sort_within_sections = '1'
[tool.coverage.run]
branch = true
omit = [
"*test*",
"*migrations*",
"manage.py",
"eeflows/urls.py",
"eeflows/celery.py",
"eeflows/celery_settings.py",
"eeflows/storages.py",
"eeflows/wsgi.py",
"settings/*",
]
[tool.coverage.html]
directory = "cover"
[tool.pytest.ini_options]
minversion = "6.0"
DJANGO_SETTINGS_MODULE = "settings.local_test"
markers = ["django_db", "parametrize", "unit"]
norecursedirs = [
"migrations",
".data",
"app",
"node_modules",
]
python_files = ["test_*.py", "tests/*.py", "tests.py"]