-
Notifications
You must be signed in to change notification settings - Fork 10
/
pyproject.toml
213 lines (191 loc) · 4.93 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
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
[tool.poetry]
name = "intelligence-toolkit"
version = "0.0.2"
description = "Interactive workflows for generating AI intelligence reports from real-world data sources using GPT models"
authors = [
"Dayenne Souza <[email protected]>",
"Ha Trinh <[email protected]>",
"Darren Edge <[email protected]>"
]
readme = "DEVELOPING.md"
license = "MIT"
keywords = ["AI", "data analysis", "reports", "workflows"]
[project.urls]
source = "https://github.com/microsoft/intelligence-toolkit"
issues = "https://github.com/microsoft/intelligence-toolkit/issues"
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
altair = "4.2.2"
networkx = "3.3"
numpy = "1.26.4"
openai = "^1.37.1"
pac-synth = "0.0.8"
pdfplumber = "0.11.2"
plotly = "5.22.0"
plotly-express = "0.4.1"
polars = "0.20.10"
pyarrow = "15.0.0"
pydantic = "2.8.2"
pydantic_core = "2.20.1"
scikit-learn = "1.5.1"
scipy = "1.12.0"
streamlit = "1.31.1"
streamlit-aggrid = "0.3.4.post3"
streamlit-javascript = "0.1.5"
streamlit-agraph = "0.0.45"
tiktoken = {version = "0.7.0", extras = ["azure"]}
pdfkit = "1.0.0"
markdown2 = "2.5.0"
azure-identity = "1.17.1"
azure-core = "1.30.2"
semchunk = "2.2.0"
lancedb = "0.12.0"
duckdb = "1.0.0"
seaborn = "0.13.2"
textblob = "0.18.0.post0"
jsonschema = "^4.23.0"
nest-asyncio = "^1.6.0"
altair-viewer = "^0.4.0"
poetry = "^1.8.3"
poethepoet = "^0.27.0"
torch = [
{version = "2.4.1", source = "pytorch_cpu", markers = "sys_platform != 'darwin'"},
{version = "2.5.1", markers = "sys_platform == 'darwin'"}
]
sentence-transformers = "^3.1.1"
graspologic = "^3.4.1"
future = "^1.0.0"
[tool.poetry.group.dev.dependencies]
newspaper3k = "^0.2.8"
coverage = "^7.6.0"
ruff = "^0.4.7"
pyright = "^1.1.371"
ipykernel = "^6.29.5"
pytest-cov = "^5.0.0"
pytest = "^8.2.2"
pytest-asyncio = "^0.23.7"
pytest-mock = "^3.14.0"
faker = "^28.0.0"
nbformat = "^5.10.4"
setuptools = "^75.3.0"
wheel = "^0.44.0"
twine = "^5.1.1"
[[tool.poetry.source]]
name = "pytorch_cpu"
url = "https://download.pytorch.org/whl/cpu"
priority = "explicit"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poe.tasks]
_sort_imports = "ruff check --select I --fix . --preview"
_format_code = "ruff format . --preview"
_ruff_check = 'ruff check . --preview'
_pyright = "pyright"
check_format = 'ruff format . --check --preview'
fix = "ruff --preview check --fix ."
fix_unsafe = "ruff check --preview --fix --unsafe-fixes ."
test_unit = "pytest ./intelligence_toolkit/tests/unit"
test_smoke = "pytest ./intelligence_toolkit/tests/smoke"
run_streamlit = "python -m streamlit run app/Home.py ${ARGS}"
[[tool.poe.tasks.format]]
sequence = ['_sort_imports', '_format_code']
ignore_fail = 'return_non_zero'
[[tool.poe.tasks.check]]
sequence = ['check_format', '_ruff_check']
ignore_fail = 'return_non_zero'
[tool.ruff]
target-version = "py310"
extend-include = ["*.ipynb"]
[tool.ruff.format]
docstring-code-format = true
docstring-code-line-length = 20
[tool.ruff.lint]
select = [
"E4",
"E7",
"E9",
"W291",
"YTT",
"T10",
"ICN",
"INP",
"Q",
"RSE",
"SLOT",
"INT",
"FLY",
"LOG",
"C90",
"T20",
"RET",
"PD",
"N",
"PIE",
"SIM",
"S",
"G",
"ERA",
"ASYNC",
"TID",
"UP",
"SLF",
"BLE",
"C4",
"I",
"F",
"A",
"ARG",
"RUF",
"B",
"TCH",
"DTZ",
"PYI",
"PT",
"EM",
"TRY",
"PERF",
"CPY",
# "PTH", # Initial run, disabled for too much noise
# "D", # Initial run, disabled for too much noise
# "FBT", # use named arguments for boolean flags
# "TD", # todos
# "FIX", # fixme
# "FURB" # preview rules
# ANN # Type annotations, re-enable when we get bandwidth
]
ignore = [
# Deprecated Rules
"ANN101",
"ANN102",
# Conflicts with interface argument checking
"ARG002",
"ANN204",
# TODO: Inspect these pandas rules for validity
"PD002", # prevents inplace=True
# TODO RE-Enable when we get bandwidth
"PERF203", # Needs restructuring of errors, we should bail-out on first error
"C901", # needs refactoring to remove cyclomatic complexity
"S311", # random alert for use with cryptography. NA
# Initial run, disabled for too much noise
"T201",
"S404",
"S603",
"N806",
]
[tool.ruff.lint.per-file-ignores]
"intelligence_toolkit/tests/*" = ["S", "D", "ANN", "T201", "ASYNC", "ARG", "PTH", "TRY"]
# "examples/*" = ["S", "D", "ANN", "T201", "PTH", "TRY", "PERF"]
"*.ipynb" = ["S", "T201", "I001"]
[tool.ruff.lint.flake8-builtins]
builtins-ignorelist = ["input", "id", "bytes"]
[tool.ruff.lint.flake8-pytest-style]
fixture-parentheses = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"
# https://github.com/microsoft/pyright/blob/9f81564a4685ff5c55edd3959f9b39030f590b2f/docs/configuration.md#sample-pyprojecttoml-file
[tool.pyright]
include = ["app", "intelligence_toolkit", "example_notebooks"]
typeCheckingMode = "off"
[virtualenvs]
in-project = true