-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathpyproject.toml
More file actions
218 lines (196 loc) · 5.04 KB
/
pyproject.toml
File metadata and controls
218 lines (196 loc) · 5.04 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
[build-system]
requires = ["setuptools>=61.0", "versioneer[toml]==0.28"]
build-backend = "setuptools.build_meta"
[project]
name = "gs_quant"
dynamic = ["version"]
authors = [
{name = "Goldman Sachs", email = "developer@gs.com"}
]
description = "Goldman Sachs Quant"
readme = "README.md"
license = {text = "Apache-2.0"}
requires-python = ">=3.9"
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"License :: OSI Approved :: Apache Software License",
]
dependencies = [
"aenum",
"backoff",
"backports.zoneinfo; python_version < '3.9'",
"cachetools",
"certifi",
"dataclasses_json",
"deprecation",
"inflection",
"lmfit",
"more_itertools",
"msgpack",
"nest-asyncio",
"numpy>1.17.0,<2.4.0",
"opentelemetry-api",
"opentelemetry-sdk",
"pandas>=1.4",
"pydash<7.0.0",
"python-dateutil>=2.7.0",
"requests",
"httpx>=0.28.1",
"scipy>=1.2.0",
"statsmodels>=0.13.0",
"tqdm",
"websockets"
]
[project.optional-dependencies]
turbo = [
"quant-extensions",
]
notebook = [
"jupyter",
"matplotlib",
"seaborn",
"treelib",
]
internal = [
"gs-quant-internal",
]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-order",
"pytest-asyncio",
"testfixtures",
"nbconvert",
"nbformat",
"plotly",
"freezegun",
"ruff",
]
develop = [
"wheel",
"sphinx",
"sphinx_rtd_theme",
"sphinx_autodoc_typehints",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-order",
"testfixtures",
]
[project.urls]
Homepage = "https://marquee.gs.com"
[dependency-groups]
test = [
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-order",
"pytest-asyncio",
"testfixtures",
"nbconvert",
"nbformat",
"plotly",
"freezegun",
"ruff",
]
dev = [
"wheel",
"sphinx",
"sphinx_rtd_theme",
"sphinx_autodoc_typehints",
"pytest",
"pytest-cov",
"pytest-mock",
"pytest-order",
"testfixtures",
]
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "gs_quant.__version__"}
[tool.setuptools.packages.find]
include = ["gs_quant*"]
[tool.setuptools.package-data]
gs_quant = [
"config.ini",
"resources/asset-service.json",
"resources/data-service.json",
"resources/risk-service.json",
"resources/certificates/*",
"examples/*",
"guides/*",
"tutorials/*",
"docs/*",
"_version.py",
]
[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "gs_quant/_version.py"
versionfile_build = "gs_quant/_version.py"
tag_prefix = "release-"
parentdir_prefix = "gs_quant-"
[tool.ruff]
# Setting can be seen here
# https://docs.astral.sh/ruff/settings/
# Line lenght override
line-length = 120
indent-width = 4
# In addition to the standard set of exclusions, omit all tests, plus a specific file.
extend-exclude = ["_version.py", "versioneer.py", "*.json", "target", "__init__.py", "content", "documentation", "datacube"]
# Assume at least Python 3.10, code will be compatible with 3.10 or later
target-version = "py310"
[tool.ruff.format]
# Keep the quotes as they are
quote-style = "preserve"
skip-magic-trailing-comma = false
[tool.ruff.lint.isort]
combine-as-imports = true
[tool.ruff.lint]
# We add the tidy import selection to pickup banned-api
extend-select = [
"TID251", # see flake8-tidy-imports.banned-api below
"ICN", # import conventions, e.g. import pandas as pd
"NPY", # Mainly for numpy 2.0 deprecation check
]
# e.g. block
# from pandas import DataFrame, Series
# instead do
# import pandas as pd
# pd.DataFrame(), pd.Series()
[tool.ruff.lint.flake8-import-conventions]
banned-from = [
"pandas",
"numpy",
"datetime"
]
# The default list include "pandas as pd", "numpy as np"
extend-aliases = { "datetime" = "dt" }
[tool.ruff.lint.flake8-tidy-imports.banned-api]
"gs_quant.target.common".msg = "Use gs_quant.common instead of gs_quant.target.common"
"gs_quant.target.instrument".msg = "Use gs_quant.instrument instead of gs_quant.target.instrument"
"gs_quant.target.workflow_quote".msg = "Use gs_quant.workflow instead of gs_quant.target.workflow_quote"
"pytz".msg = "Use zoneinfo package or datetime.timezone instead of pytz"
# When we support a minimium version of python 3.10
#"typing.List".msg = "Use built-in list instead of typing.List"
#"typing.Tuple".msg = "Use built-in tuple instead of typing.Tuple"
#"typing.Dict".msg = "Use built-in dict instead of typing.Dict"
#"typing.Set".msg = "Use built-in set instead of typing.set"
[tool.uv]
default-groups = ["test", "dev"]
native-tls = true
[[tool.uv.index]]
name = "aws"
url = "https://pypi.aws.site.gs.com/repository/pypi-group/simple"
default = true
[tool.uv.pip]
index-url = "https://pypi.aws.site.gs.com/repository/pypi-group/simple"
emit-index-url = true
universal = true