-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
202 lines (182 loc) · 3.98 KB
/
pyproject.toml
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[tool.poetry]
name = "AFB Requests"
version = "0.1.0"
description = "The Animal Food Bank Requests application"
authors = ["Delano"]
license = "MIT"
readme = "README.md"
package-mode = false
[tool.poetry.dependencies]
python = ">=3.10,<4.0"
Django = "5.1b1"
asgiref = "3.8.1"
asttokens = "2.4.1"
attrs = "23.2.0"
build = "1.2.1"
certifi = "2024.6.2"
cfgv = "3.4.0"
charset-normalizer = "3.3.2"
click = "8.1.7"
coverage = "7.5.4"
decorator = "5.1.1"
distlib = "0.3.8"
django-cors-headers = "4.4.0"
django-extensions = "3.2.3"
django-filter = "24.2"
django-model-utils = "4.5.1"
django-phonenumber-field = "8.0.0"
django-unfold = "0.29.1"
django-vite = "3.0.4"
drf-spectacular = "0.27.2"
drf-spectacular-sidecar = "2024.6.1"
executing = "2.0.1"
filelock = "3.15.4"
identify = "2.5.36"
idna = "3.7"
inflection = "0.5.1"
iniconfig = "2.0.0"
ipdb = "0.13.13"
ipython = "8.25.0"
jedi = "0.19.1"
jsonschema = "4.22.0"
jsonschema-specifications = "2023.12.1"
markdown = "3.6"
markupsafe = "2.1.5"
matplotlib-inline = "0.1.7"
nodeenv = "1.9.1"
packaging = "24.1"
parso = "0.8.4"
pexpect = "4.9.0"
phonenumbers = "8.13.39"
pip-tools = "7.4.1"
platformdirs = "4.2.2"
pluggy = "1.5.0"
pre-commit = "3.7.1"
ptyprocess = "0.7.0"
pure-eval = "0.2.2"
pygments = "2.18.0"
pyproject-hooks = "1.1.0"
pytest = "8.2.2"
pytest-django = "4.8.0"
python-dotenv = "1.0.1"
pyyaml = "6.0.1"
referencing = "0.35.1"
requests = "2.32.3"
rpds-py = "0.18.1"
six = "1.16.0"
sqlparse = "0.5.0"
stack-data = "0.6.3"
traitlets = "5.14.3"
uritemplate = "4.1.1"
urllib3 = "2.2.2"
virtualenv = "20.26.3"
wcwidth = "0.2.13"
werkzeug = "3.0.3"
wheel = "0.43.0"
djangorestframework = {git = "https://github.com/delano/django-rest-framework.git", rev = "dev"}
drfpasswordless = {git = "https://github.com/delano/django-rest-framework-passwordless.git", rev = "dev"}
rich = "^13.7.1"
pytest-xdist = "^3.6.1"
django-log-request-id = "^2.1.0"
psycopg2-binary = "^2.9.9"
pytest-mock = "^3.14.0"
[tool.poetry.group.dev.dependencies]
ruff = "^0.5.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 80
target-version = ['py38']
include = '\.pyi?$'
exclude = '''
/(
\.git
| \.hg
| \.mypy_cache
| \.nuxt
| \.pytest_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| node_modules
)/
'''
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".bzr",
".direnv",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".nox",
".pants.d",
".pytype",
".ruff_cache",
".svn",
".tox",
".venv",
"__pypackages__",
"_build",
"buck-out",
"build",
"dist",
"node_modules",
"venv",
"__pycache__",
]
# Same as Black.
line-length = 80
indent-width = 4
# Assume Python 3.8
target-version = "py38"
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
select = ["E4", "E7", "E9", "F"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.ruff.format]
# Like Black, use double quotes for strings.
quote-style = "double"
# Like Black, indent with spaces, rather than tabs.
indent-style = "space"
# Like Black, respect magic trailing commas.
skip-magic-trailing-comma = false
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.isort]
force_sort_within_sections = true
force_single_line = false
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
use_parentheses = true
line_length = 80
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "afb.settings"
pythonpath = [
".",
"./apps/api",
]
minversion = "8.1"
# https://docs.pytest.org/en/8.1.x/reference/reference.html#command-line-flags
addopts = "-rfe -q"
required_plugins = "pytest-django>=4.8.0 pytest-xdist>=3.6.0"
python_files = [
"test_*.py",
"*_test.py",
]
testpaths = [
"apps/api/tests",
"apps/api/afbcore/tests",
]