-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
212 lines (193 loc) · 5.73 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
203
204
205
206
207
208
209
210
211
212
[tool.poetry]
name = "avengercon"
version = "0.3.0"
description = "Avengercon VIII Workshop: Horizontally Scaling Python for Production"
authors = ["Brent Stone <[email protected]>"]
license = "MIT"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
]
repository = "https://github.com/brent-stone/avengercon_2024"
documentation = "https://brent-stone.github.io/avengercon_2024/"
[tool.poetry.dependencies]
python = "^3.10"
minio = "^7.2.4"
pydantic = "^2.6.3"
pydantic-settings = "^2.2.1"
uvicorn = {extras = ["standard"], version = "^0.27.1"}
fastapi = "^0.109.2"
redis = "^5.0.1"
celery = {extras = ["pytest", "redis"], version = "^5.3.6"}
watchdog = "^4.0.0"
flower = "^2.0.1"
# Set to specific versions to meet apache-beam downstream version req's
# note: Poetry can't dynamically solve due to the dynamic and non-standard
# setup.py pyproject.toml used in the apache-beam repo
# https://github.com/apache/beam/tree/master/sdks/python
numpy = "^1.26.4"
pandas = "^2.2.1"
python-multipart = "^0.0.9"
taichi = "^1.7.0"
numba = "^0.59.0"
prefect = "^2.16.0"
prefect-aws = "^0.4.9"
prefect-docker = "^0.4.4"
s3fs = "^2024.2.0"
# https://docs.dask.org/en/latest/install.html
dask = {extras = ["complete"], version = "^2024.2.1"}
dask-ml = "^2023.3.24"
prefect-dask = "^0.2.6"
# Example dependencies if you want to re-add apache beam
# apache-beam = "^2.54.0"
# Set to specific versions to meet apache-beam downstream version req's
# note: Poetry can't dynamically solve due to the dynamic and non-standard
# setup.py pyproject.toml used in the apache-beam repo
# https://github.com/apache/beam/tree/master/sdks/python
# numpy = "1.24.4"
# pandas = "2.0.3"
[tool.poetry.group.dev.dependencies]
pytest = "^8.0.2"
black = "^24.2.0"
pytest-cov = "^4.1.0"
pre-commit = "^3.6.2"
mypy = "^1.8.0"
interrogate = "^1.5.0"
pytest-sugar = "^1.0.0"
mkdocs-material = "^9.5.11"
mkdocstrings = {extras = ["python"], version = "^0.24.1"}
tox = {extras = ["toml"], version = "^4.13.0"}
coverage = "^7.4.3"
pytest-benchmark = {extras = ["histogram"], version = "^4.0.0"}
[tool.poetry.group.pytest.dependencies]
pytest = "^8.0.2"
pytest-cov = "^4.1.0"
pytest-asyncio = "^0.23.5"
pytest-local-badge = "^1.0.3"
pytest-sugar = "^1.0.0"
pytest-benchmark = {extras = ["histogram"], version = "^4.0.0"}
[tool.poetry.group.mypy.dependencies]
mypy = {extras = ["reports"], version = "^1.8.0"}
types-all = "^1.0.0"
[tool.poetry.group.mkdocs.dependencies]
mkdocs-material = "^9.5.11"
mkdocstrings = {extras = ["python"], version = "^0.24.1"}
mkdocs-git-revision-date-localized-plugin = "^1.2.4"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
# https://docs.pytest.org/en/latest/reference/customize.html
minversion = "7.0"
# -ra flag is what type of test output to show extra summary info. (a)ll, (f)ailed, etc.
# Be sure to keep this in sync with the flags in tox.ini
addopts = [
"-ra",
"--quiet",
"--color=yes",
]
testpaths = [
"tests",
]
asyncio_mode = "auto"
log_cli=true
log_auto_indent=true
log_level="INFO"
# Coverage configuration reference
# https://coverage.readthedocs.io/en/7.2.7/config.html
[tool.coverage.run]
branch = true
source = ["avengercon"]
parallel = true
relative_files = true
# data_file = "docs/coverage.sqlite3"
omit = [
".pytest_cache/*",
".tox/*",
".venv/*",
".cache/*",
"*/docs*",
"*/site*",
"*/scripts*",
]
[tool.coverage.report]
show_missing = true
precision = 2
[tool.coverage.html]
title = "Coverage Report"
directory = "docs/coverage"
skip_empty = true
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
# https://github.com/econchick/interrogate/tree/master#configuration
[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = false
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 95
exclude = ["docs", "site", "build", ".tox", ".idea", ".venv", ".pytest_cache", "blah.py", "blah2.py"]
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
# possible values: 0 (minimal output), 1 (-v), 2 (-vv)
verbose = 2
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
generate-badge = "docs/badges"
badge-format = "svg"
badge-style = "flat"
[tool.mypy]
# Specify the target platform details in config, so your developers are
# free to run mypy on Windows, Linux, or macOS and get consistent
# results.
python_version="3.11"
plugins="numpy.typing.mypy_plugin"
pretty = true
mypy_path = "stubs"
show_column_numbers = true
# show error messages from unrelated files
follow_imports = "normal"
# be strict
disallow_untyped_calls=true
strict_optional=true
strict_equality=true
warn_no_return=true
warn_redundant_casts=true
warn_unused_ignores=true
warn_unused_configs=true
# Minio is working on type hinted compliance but no there yet as of DEC23
#disallow_any_unimported=true
#warn_return_any=true
#disallow_any_generics=true
disallow_any_unimported=false
warn_return_any=false
disallow_any_generics=false
# Unreachable blocks have been an issue when compiling mypyc, let's try
# to avoid 'em in the first place.
warn_unreachable=true
# The following are off by default. Flip them on if you feel adventurous.
disallow_untyped_defs=true
check_untyped_defs=true
show_error_codes=true
show_error_context=true
# No incremental mode
cache_dir="/dev/null"
# suppress errors about unsatisfied imports for untyped packages
#[[tool.mypy.overrides]]
#module = [
# "minio.*",
# "avengercon.minio.*",
#]
ignore_missing_imports = true