-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
167 lines (146 loc) · 4.8 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
[tool.poetry]
name = "cognite-neat"
version = "0.96.6"
readme = "README.md"
description = "Knowledge graph transformation"
authors = [
"Nikola Vasiljevic <nikola.vasiljevic@cognite.com>",
"Anders Albert <anders.albert@cognite.com>",
"Aleksandrs Livincovs <aleksandrs.livincovs@cognite.com>",
]
license = "Apache-2.0"
documentation = "https://cognite-neat.readthedocs-hosted.com/"
homepage = "https://cognite-neat.readthedocs-hosted.com/"
repository = "https://github.com/cognitedata/neat"
packages = [{ include = "cognite", from = "." }]
exclude = [
"cognite/neat/app/ui/neat-app/public/**",
"cognite/neat/app/ui/neat-app/src/**",
"cognite/neat/app/ui/neat-app/node_modules/**",
"cognite/neat/app/ui/neat-app/*.json",
]
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/ for an overview of ruff rules
select = ["E", "W", "F", "I", "RUF", "TID", "UP", "B", "FLY", "PTH", "ERA"]
fixable = ["E", "W", "F", "I", "RUF", "TID", "UP", "B", "FLY", "PTH", "ERA"]
ignore = []
[tool.ruff.lint.isort]
known-third-party = ["cognite.client"]
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = ["scripts"]
fix = true
[tool.mypy]
explicit_package_bases = true
allow_redefinition = true
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
warn_required_dynamic_aliases = true
[tool.poetry.scripts]
neat = "cognite.neat._app.main:run"
[tool.poetry.dependencies]
python = "^3.10"
# Core dependencies
pandas = "*"
cognite-sdk = "^7.54.6"
rdflib = "*"
pydantic = "^2"
PyYAML = "*"
requests = "*"
urllib3 = "^2"
openpyxl = "*"
networkx = "^3.4.2"
# Notebook
rich = { version = "^13.7.1", extras = ["jupyter"]}
# Backport from Python 3.11
exceptiongroup = { version = "^1.1.3", python = "<3.11" }
'backports.strenum' = { version = "^1.2", python = "<3.11" }
typing_extensions = { version = "^4.8", python = "<3.11" }
tomli = { version = "^2.0.1", python = "<3.11" }
# API
uvicorn = { extras = ["standard"], version = "^0", optional = true }
prometheus-client = { version = "^0", optional = true }
fastapi = { version = "^0", optional = true }
# This is pinned as fastapi raises a runtime error with the latest version of python-multipart
python-multipart = { version = "0.0.9", optional = true }
# WorkFlow
schedule = { version = "^1", optional = true }
# Alternative graph for NEAT Store
oxrdflib = { version = "^0.3.3", optional = true, extras = ["oxigraph"] }
pyoxigraph = { version = "0.3.19", optional = true }
# Only used for GoogleSheetImporter
gspread = { version = "*", optional = true }
google-api-python-client = { version = "*", optional = true }
google-auth-oauthlib = { version = "*", optional = true }
# Remove when ledacy is removed
jinja2 = { version = "^3.1.2", optional = true }
# Documentation dependencies
mkdocs = { version = "*", optional = true }
mkdocs-jupyter = { version = "*", optional = true }
mkdocs-material-extensions = { version = "*", optional = true }
mkdocs-git-revision-date-localized-plugin = { version = "*", optional = true }
mkdocs-git-authors-plugin = { version = "*", optional = true }
mkdocs-gitbook = { version = "*", optional = true }
mkdocs-glightbox = { version = "*", optional = true }
pymdown-extensions = { version = "*", optional = true }
mkdocs-autorefs = { version = "^0.5.0", optional = true }
mkdocstrings = { version = "*", optional = true, extras = ["python"] }
pyvis = "^0.3.2"
[tool.poetry.extras]
docs = [
"mkdocs",
"mkdocs-jupyter",
"mkdocs-material-extensions",
"mkdocs-git-revision-date-localized-plugin",
"mkdocs-git-authors-plugin",
"mkdocs-gitbook",
"mkdocs-glightbox",
"pymdown-extensions",
"mkdocstrings",
"mkdocs-autorefs",
]
google = ["gspread", "google-api-python-client", "google-auth-oauthlib"]
oxi = ["oxrdflib", "pyoxigraph"]
service = ["uvicorn", "prometheus-client", "fastapi", "schedule", "python-multipart"]
graphql = ["jinja2"]
all = [
"jinja2",
"pyoxigraph",
"oxrdflib",
"uvicorn",
"prometheus-client",
"fastapi",
"schedule",
"python-multipart",
]
[tool.poetry.dev-dependencies]
twine = "*"
# Today, 4. March 2024, the latest verson of pytest 8.1 (released yesterday) is not compatible with pytest-regressions
# This limit should be removed when pytest-regressions is updated to be compatible with pytest 8.1 and beoynd.
pytest = { version = ">=8.0, <8.1" }
pytest-cov = "*"
pytest-notebook = "*"
pytest-freezegun = "0.4.2"
pytest-xdist = "^3.6.1"
pre-commit = "*"
jupyter = "*"
pytest-regressions = "*"
memray = [
{ version = "^1.7", platform = "darwin" },
{ version = "^1.7", platform = "linux" },
]
httpx = "*"
mypy = "^1.4"
pandas-stubs = "^2"
types-PyYAML = "^6"
types-openpyxl = "^3"
types-requests = "^2"
types-setuptools = "^68"
networkx-stubs = "^0.0.1"
cognite-toolkit = "^0.2.4"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"