-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpyproject.toml
163 lines (144 loc) · 4.55 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
[tool.poetry]
name = "cognite-neat"
version = "0.0.0"
readme = "README.md"
description = "Knowledge graph transformation"
authors = [
"Nikola Vasiljevic <[email protected]>",
"Anders Albert <[email protected]>",
"Aleksandrs Livincovs <[email protected]>",
]
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.71.2"
rdflib = "*"
pydantic = "^2"
PyYAML = "*"
requests = "*"
urllib3 = "^2"
openpyxl = "*"
networkx = "^3.4.2"
mixpanel = "^4.10.1"
# Used for loading neat engine
packaging = ">=22.0,<25.0"
# NeatEngine dependencies
jsonpath-python = ">=1.0.6, <2.0.0"
elementpath = ">=4.0.0, <5.0.0"
lxml = {version = "^5.3.0", optional = true}
# 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" }
# Alternative graph for NEAT Store
oxrdflib = { version = "^0.4.0", optional = true, extras = ["oxigraph"] }
pyoxigraph = { version = "0.4.3", optional = true }
# Only used for GoogleSheetImporter
gspread = { version = "*", optional = true }
google-api-python-client = { version = "*", optional = true }
google-auth-oauthlib = { version = "*", 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"] }
# dependencies for mkdocstrings
# 3.1.0 breaks nbconvert
mistune= {version ="3.0.2", optional= true}
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",
"mistune",
]
google = ["gspread", "google-api-python-client", "google-auth-oauthlib"]
oxi = ["oxrdflib", "pyoxigraph"]
all = [
"pyoxigraph",
"oxrdflib",
"lxml",
]
[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 = "*"
marko = "^2.1.2"
mypy = "^1.4"
pandas-stubs = "^2"
types-PyYAML = "^6"
types-openpyxl = "^3"
types-requests = "^2"
types-setuptools = "^68"
types-tqdm = "^4.67.0.20241221"
networkx-stubs = "^0.0.1"
cognite-toolkit = "^0.4.8"
tqdm = "^4.67.1"
deepdiff = "^8.2.0"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"