-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
137 lines (122 loc) · 4.14 KB
/
pyproject.toml
File metadata and controls
137 lines (122 loc) · 4.14 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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
[build-system]
requires = ["hatchling>=1.25"]
build-backend = "hatchling.build"
[project]
name = "bluetail-poc"
version = "0.1.0"
description = "Agentic AI Solution for aviation compliance reports"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"boto3>=1.35.0",
"pydantic>=2.0.0",
"pydantic-settings>=2.0.0",
"pypdf>=4.0.0",
"pyyaml>=6.0.3",
"cryptography>=46.0.3",
]
[tool.hatch.build.targets.wheel]
packages = ["src"]
[dependency-groups]
dev = [
"boto3-stubs[bedrock-runtime,dynamodb,s3,sqs,textract]>=1.35.0",
"mypy>=1.18.2",
"moto[all]>=5.0.0",
"pytest>=9.0.1",
"pytest-cov>=7.0.0",
"pytest-mock>=3.14.0",
"ruff>=0.14.5",
"types-boto3>=1.0.2",
"python-dotenv>=1.2.1",
"ipykernel>=7.1.0",
"fastapi>=0.128.7",
"uvicorn>=0.40.0",
"rapidfuzz>=3.14.3",
]
# ============================================================================
# RUFF - Linting & Formatting
# ============================================================================
[tool.ruff]
line-length = 100
target-version = "py312"
src = ["src"]
exclude = ["web_viewer", "terraform", "scripts", "validation_harness"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
"ARG", # flake8-unused-arguments
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
"PTH", # flake8-use-pathlib
"ERA", # eradicate (commented code)
"PL", # pylint
"RUF", # ruff-specific
]
ignore = [
"PLR0913", # too many arguments
"PLR2004", # magic value comparison
"PLR0912", # Too many branches
"PLR0915", # Too many statements
"PLR0911", # Too many return statements
"PLC0415", # Imports not at top of file (for lazy/conditional imports)
"TC001", # Move imports to TYPE_CHECKING block
"TC002", # Move third-party imports to TYPE_CHECKING block
"TC003", # Move stdlib imports to TYPE_CHECKING block
"E501", # Line too long (mostly in prompt strings)
"ERA001", # Commented-out code (often intentional reference code)
"RUF001", # Ambiguous unicode in string (en-dashes from MMUCC spec)
"RUF003", # Ambiguous unicode in comment
"RUF010", # Checks for uses of str(), repr(), and ascii() as explicit type conversions within f-strings.
"RUF022", # __all__ is not sorted (intentional grouping by category)
"PLW0603", # Global statement (needed for singleton patterns)
]
fixable = [
"RUF001", # Ambiguous unicode character in string (e.g., en-dash → hyphen)
"RUF003", # Ambiguous unicode character in comment (e.g., en-dash → hyphen)
"UP035", # Deprecated typing imports (e.g., typing.Dict → dict)
"UP006", # Replaces generics with stlib variants PEP 585 (e.g., List → list)
"UP045", # Replace typing.Optional syntax PEP 604 (e.g., Optional[X] → X | None)
"I", # Import sorting (isort-style organization)
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
docstring-code-format = true
# ============================================================================
# MyPy - Static Type Checking
# ============================================================================
[tool.mypy]
strict = true
explicit_package_bases = true
namespace_packages = true
files = ["src"]
[[tool.mypy.overrides]]
module = "data_creation.*"
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = "moto.*"
ignore_missing_imports = true
# ============================================================================
# PYTEST - Testing
# ============================================================================
[tool.pytest.ini_options]
testpaths = ["tests"]
python_files = ["test_*.py"]
python_classes = ["Test*"]
python_functions = ["test_*"]
addopts = [
"--tb=short", # short tracebacks
"-ra", # show extra test summary info
]
# addopts = "-v --cov=lambdas --cov-report=term-missing"
filterwarnings = ["ignore::DeprecationWarning", "ignore::UserWarning"]
norecursedirs = ["scripts", ".*"]
pythonpath = ["src"]