Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (107 loc) · 2.93 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (107 loc) · 2.93 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "celerity-sdk"
version = "0.5.2"
description = "Python SDK for building Celerity applications"
readme = "README.md"
license = "Apache-2.0"
requires-python = ">=3.13"
authors = [{ name = "Celerity Contributors" }]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Typing :: Typed",
"Framework :: AsyncIO",
]
dependencies = ["pydantic>=2.0", "aiohttp>=3.9"]
[project.optional-dependencies]
runtime = ["celerity-runtime-sdk>=0.2.2"]
cli = []
test = ["pytest>=8.0", "pytest-asyncio>=0.24", "httpx>=0.27", "PyYAML>=6.0", "json5>=0.10"]
aws = ["boto3>=1.34", "aioboto3>=13.0"]
cache = ["redis[hiredis]>=5.0"]
gcp = ["functions-framework>=3.0"]
azure = ["azure-functions>=1.17"]
resources-sql = [
"sqlalchemy[asyncio]>=2.0",
"asyncpg>=0.30",
"aiomysql>=0.2",
]
telemetry = [
"structlog>=24.0",
"opentelemetry-api>=1.27",
"opentelemetry-sdk>=0.48",
"opentelemetry-exporter-otlp-proto-grpc>=1.27",
"opentelemetry-sdk-extension-aws>=2.0",
"opentelemetry-propagator-aws-xray>=1.0",
]
dev = [
"celerity-sdk[test,runtime,aws,cache,resources-sql,telemetry]",
"boto3-stubs>=1.34",
"types-aioboto3>=13.0",
"types-aiobotocore-dynamodb>=2.15",
"types-aiobotocore-s3>=2.15",
"types-aiobotocore-sqs>=2.15",
"types-aiobotocore-sns>=2.15",
"types-aiobotocore-rds>=2.15",
"types-redis>=4.6",
"types-PyYAML>=6.0",
"ruff>=0.8",
"mypy>=1.13",
"pytest-cov>=6.0",
]
[project.scripts]
celerity-extract = "celerity.cli.extract:main"
[tool.hatch.build.targets.wheel]
packages = ["src/celerity"]
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
[tool.mypy]
python_version = "3.13"
mypy_path = "src"
strict = true
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = "tests.*"
disable_error_code = ["comparison-overlap"]
disallow_untyped_decorators = false
[[tool.mypy.overrides]]
module = ["pytest.*", "pytest_asyncio.*", "_pytest.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["celerity.telemetry.*"]
ignore_missing_imports = true
[tool.ruff]
target-version = "py313"
line-length = 100
src = ["src", "tests"]
[tool.flake8]
max-line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"N", # pep8-naming
"UP", # pyupgrade
"B", # flake8-bugbear
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"RUF", # ruff-specific rules
]
[tool.ruff.lint.per-file-ignores]
"src/celerity/bootstrap/runtime_mapper.py" = ["TC002", "I001"]
"tests/**" = ["TC002"]
[tool.ruff.lint.isort]
known-first-party = ["celerity"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"