-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
93 lines (85 loc) · 1.97 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
[project]
name = "data-platform"
version = "0.1.0"
requires-python = ">3.7"
readme = "README.md"
authors = [
{name = "Data Team", email = "data@team.com"}
]
dependencies = [
# Formatting
"black",
# Type checking
"mypy",
# Pre-commit hooks
"pre-commit",
# Testing
"pytest",
# Linting
"ruff",
"phidata==1.5.9",
# Dataframe libraries
"pandas",
"polars",
# Pyspark libraries
"pyspark",
# Sql libraries
# "sqlmodel",
# Postgres libraries
# "psycopg2-binary",
# AWS libraries
# "awswrangler",
# Other libraries
"httpx",
# For Airflow 2.5.0 compatibility
"pathspec~=0.9.0",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["workflows", "workspace", "notebooks"]
# Exclude secrets from the package
# https://setuptools.pypa.io/en/latest/userguide/datafiles.html#exclude-package-data
[tool.setuptools.exclude-package-data]
workspace = ["secrets"]
# Update this value if the workspace directory is renamed.
# [tool.phidata]
# workspace = "workspace"
[tool.ruff]
line-length = 110
exclude = [
".venv*",
"workspace/dev/airflow/resources/*",
"workspace/prd/airflow/resources/*",
"workspace/dev/databox/resources/*",
"workspace/prd/databox/resources/*",
"workspace/dev/superset/resources/*",
"workspace/prd/superset/resources/*",
"workspace/dev/jupyter/resources/*",
"workspace/prd/jupyter/resources/*",
]
[tool.mypy]
pretty = true
check_untyped_defs = true
no_implicit_optional = true
warn_unused_configs = true
exclude = [
".venv*",
"workspace/dev/airflow/resources/*",
"workspace/prd/airflow/resources/*",
"workspace/dev/databox/resources/*",
"workspace/prd/databox/resources/*",
"workspace/dev/superset/resources/*",
"workspace/prd/superset/resources/*",
"workspace/dev/jupyter/resources/*",
"workspace/prd/jupyter/resources/*",
]
[[tool.mypy.overrides]]
module = [
"airflow.*",
"phidata.*",
"pyarrow.*",
"setuptools.*",
]
ignore_missing_imports = true