forked from Flared/saturn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
147 lines (137 loc) · 3.34 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
[tool.poetry]
name = "saturn-engine"
version = "0.5.2"
description = ""
readme = "README.md"
authors = ["Flare Systems <[email protected]>"]
repository = "https://github.com/Flared/saturn"
keywords = ["data", "collection", "task", "worker", "processing"]
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: Developers",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Software Development :: Libraries :: Application Frameworks",
"Topic :: System :: Distributed Computing",
]
license = "BSD-3-Clause"
packages = [
{ include = "saturn_engine", from = "src" },
]
[tool.poetry.dependencies]
python = "^3.10"
SQLAlchemy = {extras = ["mypy", "asyncio"], version = ">=1.4.29"}
aiosqlite = "^0.17.0"
asyncstdlib = "^3.10.2"
aio-pika = ">=8.0"
####################
## worker-manager ##
####################
Flask = {version = "^2.0.2", optional = true }
PyYAML = "^6.0"
types-PyYAML = "^6.0.0"
aiohttp = {extras = ["speedups"], version = "^3.8.0"}
croniter = "^1.0.15"
types-croniter = "^1.0.3"
click = "^8.0.3"
aiodogstatsd = {version = "^0.16.0", optional = true}
structlog = ">=21.5.0"
sentry-sdk = "^1.5.3"
arq = {version = "^0.25", optional = true}
limits = {version = "^3.10.0"}
opentelemetry-api = "^1.13.0"
opentelemetry-sdk = {version = "^1.13.0", optional = true}
pydantic = "^2.6.4"
greenlet = "^2.0.2"
typing-inspect = "^0.9.0"
[tool.poetry.extras]
worker-manager = [
"Flask",
]
arq = [
"arq"
]
statsd = [
"aiodogstatsd",
]
structlog = [
"structlog",
]
sentry = [
"sentry-sdk",
]
tracer = [
"opentelemetry-sdk",
]
[tool.poetry.dev-dependencies]
nox = "*"
black = "*"
flake8 = "*"
flake8-bandit = "*"
flake8-black = "*"
flake8-bugbear = "*"
flake8-breakpoint = "*"
flake8-isort = "*"
isort = "*"
mypy = "*"
mypy-typing-asserts = "*"
pytest = "*"
nox-poetry = "*"
pytest-asyncio = "0.21.1" # Updating will cause issues with the custom asyncio event loop fixtures
pytest-icdiff = "*"
pytest-mock = "*"
freezegun = "*"
types-freezegun = "*"
autoflake8 = "*"
[tool.poetry.group.docs.dependencies]
rstfmt = {version = "^0.0.14", optional = true}
restructuredtext-lint = {version = "^1.4.0", optional = true}
[tool.pytest.ini_options]
asyncio_mode = "auto"
addopts = '''
--doctest-modules
--doctest-ignore-import-errors
'''
filterwarnings = [
"error",
"ignore:distutils Version classes are deprecated.:DeprecationWarning",
"ignore:.*/tmp/ray/.*:ResourceWarning",
"ignore:.*You should use InstrumentationScope.*:DeprecationWarning",
"ignore:pkg_resources is deprecated as an API:DeprecationWarning",
]
[tool.isort]
profile = "black"
force_single_line = true
known_typing_library = '''
typing,
typing_extensions,
'''
sections = '''
FUTURE,
TYPING_LIBRARY,
STDLIB,
THIRDPARTY,
FIRSTPARTY,
LOCALFOLDER
'''
[build-system]
requires = ["poetry_core>=1.0.0", "setuptools"]
build-backend = "poetry.core.masonry.api"
[tool.mypy]
mypy_path = ["src", "mypy_stubs"]
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
namespace_packages = true
plugins = ["sqlalchemy.ext.mypy.plugin", "mypy_typing_asserts.mypy_plugin"]
[[tool.mypy.overrides]]
module = [
"nox.*",
"nox_poetry.*",
"aioredis.*",
]
ignore_missing_imports = true
[tool.doc8]
max_line_length = 88