-
-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathpyproject.toml
More file actions
221 lines (210 loc) · 5.68 KB
/
pyproject.toml
File metadata and controls
221 lines (210 loc) · 5.68 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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
[project]
name = "etl"
version = "0.1.0"
description = ""
authors = [{ name = "Our World in Data", email = "tech@ourworldindata.org" }]
requires-python = ">=3.10, <3.14"
dependencies = [
"click>=8.0.1",
"PyYAML>=6.0.1",
"papermill>=2.3.3",
"jupyterlab>=3.1.13",
# we had to pin this because of this bug https://github.com/owid/etl/issues/2320, versions newer than 2.2.4 might be working again
"SPARQLWrapper>=1.8.5",
"openpyxl>=3.0.9",
"sh==1.14.3",
"Unidecode>=1.3.2",
"python-dotenv>=0.19.0",
"regex>=2022.1.18",
"wikipedia>=1.4.0",
"numpy>=2.0.0",
"pydantic>=1.9.0",
"structlog>=21.5.0",
"rich>=12.1.0",
"rich-click>=1.9.4",
"tenacity>=8.0.1",
"simplejson>=3.17.6",
"xlrd>=2.0.1",
"PyPDF2>=2.11.1",
"ruamel.yaml>=0.17.21",
"gitpython>=3.1.30",
"rapidfuzz>=2.13.7",
"fsspec>=2022.11.0",
"openai>=1.3.6",
"pdfplumber>=0.9.0",
"pyhumps>=3.8.0",
"wbgapi>=1.0.12",
"odfpy>=1.4.1",
"world-bank-data>=0.1.3",
"questionary>=2.0.0",
"typing-extensions>=4.7.1",
"scipy>=1.11.2",
"selenium>=4.15.1",
"webdriver-manager>=4.0.1",
"geopandas>=1.1.1",
"shapely>=2.0.3",
"fasteners>=0.19",
"cdsapi>=0.7.4",
"rioxarray>=0.15.1",
"html2text>=2020.1.16",
"pygithub>=2.3.0",
"pandas==2.2.3",
"sqlalchemy>=2.0.30",
"pymysql>=1.1.1",
"tiktoken>=0.7.0",
"earthengine-api>=0.1.411",
"python-docx>=1.1.2",
"h5netcdf>=1.3.0",
"frictionless[pandas]>=5.0.3",
"owid-catalog",
"owid-datautils",
"owid-repack",
"deprecated>=1.2.14",
"scikit-learn>=1.5.2",
"geopy>=2.4.1",
"py7zr>=0.22.0",
"pyreadr>=0.5.2",
"sentry-sdk>=2.43.0",
"fastjsonschema>=2.21.1",
"mediacloud>=4.4.0",
# Upgraded to FastMCP 3.0 beta for new component/provider architecture, timeouts, versioning
"fastmcp>=3.2.0",
"pyproj>=3.7.1",
"pydantic-ai>=1.40.0,<1.63.0", # 1.63.0 removed ToolManager._call_tool, breaking sentry-sdk pydantic-ai integration
"metabase-api>=3.5.2",
"codespell>=2.4.1",
"zensical>=0.0.15",
"pandas-gbq>=0.29.2",
"tomli>=2.2.1",
"genai-prices>=0.0.50",
"marshmallow>=3.26.2",
"brotli>=1.2.0",
"pyopenssl>=26.0.0",
"google-genai>=1.59.0",
"h5py>=3.15.1",
"html5lib>=1.1",
"requests>=2.32.5",
"chardet<6.0.0", # requests 2.32.5 checks chardet < 6.0.0 and warns if exceeded
]
[tool.uv.sources]
owid-catalog = { path = "lib/catalog", editable = true }
owid-datautils = { path = "lib/datautils", editable = true }
owid-repack = { path = "lib/repack", editable = true }
[dependency-groups]
dev = [
"pytest>=8.3.2",
"watchdog>=4.0.1",
"pyyaml>=6.0.2",
"argh>=0.31.3",
"jupyter>=1.0.0",
"ipython>=8.14.0",
"matplotlib>=3.9.1.post1",
"plotly>=5.23.0",
"cookiecutter>=2.6.0",
"types-pyyaml>=6.0.12.20240808",
"hydra-core>=1.3.2",
"gspread>=5.12.4",
"jsonref>=1.1.0",
"kaleido==1.1.0",
"mkdocstrings-python>=2.0.1",
"mkdocs-material>=9.5.34",
"mkdocs-jupyter>=0.24.8",
"mkdocs-exclude>=1.0.2",
"mkdocs-gen-files>=0.5.0",
"mkdocs-git-authors-plugin>=0.9.2",
"mkdocs-git-revision-date-localized-plugin>=1.2.6",
"mkdocs-click>=0.9.0",
"mkdocs-glightbox>=0.3.7",
"griffe-typingdoc>=0.3.0",
"memory-profiler>=0.61.0",
"line-profiler>=4.1.3",
# NOTE: unpinning ty always introduces some new errors, so pin to a known good version
"ty==0.0.26",
"pandas-stubs>=2.2.3,<3",
"ruff==0.15.8",
"ipdb>=0.13.13",
"commentjson>=0.9.0",
"pytest-asyncio>=1.0.0",
"sqlacodegen>=3.1.0",
"codespell>=2.4.1",
]
[project.optional-dependencies]
api = [
"fastapi>=0.115.0",
"uvicorn[standard]>=0.25.0",
"slack-sdk>=3.26.2",
"joblib>=1.3.2",
]
wizard = [
"streamlit>=1.52.0",
"streamlit-aggrid>=1.1.0,!=1.1.8.*,<1.1.9",
"streamlit-ace>=0.1.1",
"streamlit-extras>=0.3.6",
"streamlit-agraph>=0.0.45",
"pygwalker>=0.4.9",
"plotly>=5.23.0",
"geographiclib>=2.0",
"streamlit-feedback>=0.1.3",
"statsmodels>=0.14.4",
"sentence-transformers>=5.1.0",
"pandas-gbq>=0.25.0",
"wfork-streamlit-profiler>=0.2.7",
"google-api-python-client>=2.127.0",
"google-auth>=2.28.0",
"google-auth-httplib2>=0.2.0",
"google-auth-oauthlib>=1.2.0",
]
[project.scripts]
etl = 'apps.cli:cli'
etlwiz = 'apps.wizard.cli:cli'
etlr = 'etl.command:main_cli'
etls = 'etl.snapshot_command:snapshot_cli'
etlp = 'apps.pr.cli:cli'
etl-wizard = 'apps.wizard.cli:cli'
compare = 'etl.compare:cli'
backport = 'apps.backport.backport:backport_cli'
[tool.ruff]
lint.extend-select = [
# isort
"I",
# pyupgrade - modern Python syntax
"UP",
]
lint.ignore = ["E501"]
line-length = 120
target-version = "py310"
extend-exclude = [".ipynb_checkpoints", "*cookiecutter", "*.ipynb"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.ty.src]
exclude = [
# "lib/",
"apps/wizard/etl_steps/cookiecutter/",
"apps/wizard/etl_steps/cookiecutter/snapshot/**",
"**/node_modules",
"**/__pycache__",
".git",
"**/.venv",
"**/.ipynb_checkpoints",
"playground/",
".cachedir/",
".cache/",
]
[tool.ty.rules]
invalid-method-override = "ignore"
parameter-already-assigned = "ignore"
redundant-cast = "ignore"
possibly-missing-attribute = "ignore"
no-matching-overload = "ignore"
invalid-argument-type = "ignore"
unused-type-ignore-comment = "ignore"
unused-ignore-comment = "ignore"
call-top-callable = "ignore"
possibly-missing-submodule = "ignore"
[tool.uv]
exclude-newer = "3 days"
[tool.pytest.ini_options]
markers = [
"integration: marks tests as integration tests (deselect with '-m \"not integration\"')",
]