-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
102 lines (88 loc) · 1.99 KB
/
pyproject.toml
File metadata and controls
102 lines (88 loc) · 1.99 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
[build-system]
requires = ["setuptools>=61.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "aws-connectivity-test"
version = "0.1.13"
version = "0.1.11"
description = "AWS connectivity test service for MSK, RDS, OpenSearch, and OpenAI with IAM authentication"
authors = [
{name = "Rob Coward", email = "rob.coward@devops-consultants.co.uk"},
]
dependencies = [
# Web framework
"fastapi>=0.109.0",
"uvicorn>=0.27.0",
# Async Kafka consumer with MSK IAM auth
"aiokafka>=0.10.0",
"aws-msk-iam-sasl-signer-python>=1.0.0",
# OpenAI client for embeddings
"openai>=1.10.0",
# OpenSearch client with AWS auth
"opensearch-py>=2.4.0",
"requests-aws4auth>=1.2.3",
"aiohttp>=3.9.0",
# Async PostgreSQL with IAM auth
"asyncpg>=0.29.0",
# AWS SDK for IAM authentication
"boto3>=1.34.0",
# Configuration and logging
"python-dotenv>=1.0.0",
"pydantic>=2.5.0",
"pydantic-settings>=2.1.0",
"structlog>=23.2.0",
]
[project.optional-dependencies]
dev = [
"pytest>=7.4.3",
"pytest-asyncio>=0.21.1",
"pytest-mock>=3.12.0",
"pytest-cov>=4.1.0",
"black>=23.11.0",
"flake8>=6.1.0",
"mypy>=1.7.1",
"isort>=5.12.0",
]
[tool.black]
line-length = 88
target-version = ['py311']
include = '\.pyi?$'
extend-exclude = '''
/(
# directories
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| build
| dist
)/
'''
[tool.mypy]
python_version = "3.11"
warn_return_any = true
warn_unused_configs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"aiokafka.*",
"aiohttp.*",
"aws_msk_iam_sasl_signer.*",
"opensearchpy.*",
"requests_aws4auth.*",
]
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = "test_*.py"
python_classes = "Test*"
python_functions = "test_*"
addopts = "-v --tb=short"
asyncio_mode = "auto"
[tool.isort]
profile = "black"
line_length = 88