-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
71 lines (63 loc) · 2.09 KB
/
Copy pathpyproject.toml
File metadata and controls
71 lines (63 loc) · 2.09 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
[project]
name = "bike-store-relational-database"
version = "0.1.0"
description = "PySpark incremental ETL pipeline from MongoDB to PostgreSQL, with automated data quality validation, schema evolution, upserts, observability, and a 21-script SQL analytics library for retail data"
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"python-dotenv>=1.0.0",
"duckdb>=1.5.3",
"gitpython>=3.1.50",
"great-expectations>=1.22.0",
"matplotlib>=3.11.0",
"numpy>=2.4.6",
"pandas>=3.0.3",
"prometheus-client>=0.26.0",
"psycopg2-binary>=2.9.12",
"pymongo>=4.17.0",
"pyspark>=4.1.2",
"rich>=15.0.0",
"seaborn>=0.13.2",
"sqlalchemy>=2.0.50",
]
[dependency-groups]
dev = [
"mypy>=1.15.0",
"pandas-stubs",
"pytest>=9.1.1",
"ruff>=0.16.6",
"sqlfluff>=4.3.0",
"types-psycopg2",
]
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests/unit"]
[tool.mypy]
python_version = "3.13"
explicit_package_bases = true
ignore_missing_imports = true
warn_return_any = false
warn_unused_configs = false
# The repo root is on sys.path so legacy scripts import as flat
# modules (e.g. `import run`). Mypy follows that convention.
mypy_path = "."
# Suppress pre-existing mypy noise from the codebase's legacy patterns:
# - MongoClient[...] indexing with `str | None` is pervasive (URI can omit db name)
# - "Need type annotation for client" was pre-existing before this fix pass
# - The `run_gx.py` flat-module import is resolved by GX at runtime
# - `PostgresDatasource | None` return from GX context is handled by callers
[[tool.mypy.overrides]]
module = "scripts.python.*"
disable_error_code = ["var-annotated", "index", "arg-type", "call-overload", "misc"]
[[tool.mypy.overrides]]
module = "src.pipeline.*"
disable_error_code = ["var-annotated", "index", "arg-type"]
[[tool.mypy.overrides]]
module = "src.database.*"
disable_error_code = ["var-annotated", "index", "attr-defined"]
[[tool.mypy.overrides]]
module = "tests.data_quality.*"
disable_error_code = ["import-not-found"]
[[tool.mypy.overrides]]
module = "main"
disable_error_code = ["import-not-found"]