-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathpyproject.toml
More file actions
107 lines (95 loc) · 3.1 KB
/
pyproject.toml
File metadata and controls
107 lines (95 loc) · 3.1 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
[tool.poetry]
name = "cognite-sdk"
version = "8.0.7"
description = "Cognite Python SDK"
readme = "README.md"
documentation = "https://cognite-sdk-python.readthedocs-hosted.com"
authors = [
"Erlend Vollset <erlend.vollset@cognite.com>",
"Håkon Treider <hakon.treider@cognite.com>",
"Anders Albert <anders.albert@cognite.com>"
]
license = "Apache-2.0"
packages = [{ include="cognite", from="." }]
[tool.ruff]
line-length = 120
target-version = "py310"
exclude = ["cognite/client/_proto"]
[tool.ruff.lint]
# See https://beta.ruff.rs/docs/rules for an overview of ruff rules
ignore = ["E731", "E501", "W605", "RUF059"]
select = ["E", "W", "F", "I", "T", "RUF", "TID", "UP", "TC005"]
fixable = ["E", "W", "F", "I", "T", "RUF", "TID", "UP", "TC005"]
# These are used by pydoclint and we don't want 100 warnings:
external = ["DOC"]
[tool.ruff.lint.per-file-ignores]
# let scripts use print statements
"scripts/*" = ["T201"]
[tool.ruff.format]
# format code examples in docstrings to avoid users scrolling horizontally
docstring-code-format = true
docstring-code-line-length = 85
[tool.poetry.dependencies]
python = "^3.10"
httpx = "^0"
msal = "^1.31"
authlib = "^1"
protobuf = ">=4"
packaging = ">=20"
pip = ">=20.0.0" # make optional once poetry doesn't auto-remove it on "simple install"
typing_extensions = ">= 4"
# Windows does not have a ANSI database and need tzdata...:
tzdata = { version = ">=2024.1", markers = "platform_system == 'Windows'" }
numpy = { version = ">=1.25", optional = true }
sympy = { version = "*", optional = true }
pandas = { version = ">=2.1", optional = true }
geopandas = { version = ">=0.14", optional = true }
shapely = { version = ">=1.7.0", optional = true }
PyYAML = { version = "^6.0", optional = true }
[tool.poetry.extras]
pandas = ["pandas"]
numpy = ["numpy"]
geo = ["geopandas", "shapely"]
sympy = ["sympy"]
functions = ["pip"]
yaml = ["PyYAML"]
pyodide = ["tzdata", "anyio"] # keep pyodide related dependencies outside of 'all'
all = ["numpy", "pandas", "geopandas", "shapely", "sympy", "pip", "PyYAML"]
[tool.poetry.group.dev.dependencies]
pytest = ">=7"
pytest-cov = ">=3,<7" # pytest-cov 7+ has issues with coverage measurement
coverage = ">=7,<7.11" # 7.11+ has issues with editable installs in parallel test execution
pytest-rerunfailures = ">=10"
pytest-xdist = ">=2"
twine = ">=4.0.1"
pre-commit = ">=3"
toml = "^0"
python-dotenv = "^1"
mypy = "^1"
types-urllib3 = "^1.26.16"
types-requests = "^2.28.1"
pep8-naming = "^0"
types-backports = "^0"
types-protobuf = "^4.22.0.2"
types-PyYAML = "^6"
packaging = ">=23"
IPython = ">=7.0.0" # Used in docstring examples
PyYAML = "^6.0"
pytest-icdiff = "*" # Used for better diffs in pytest
types-simplejson = "^3.19.0.20240801"
types-pytz = "^2025.2.0.20250516"
tenacity = "^9.1.2"
ruff = "0.13.2"
pytest-httpx = ">=0.35"
types-authlib = "^1.6.2.20250825"
anyio = "^4.11.0"
testbook = "^0.4.2"
ipykernel = "^7.2.0"
[tool.poetry.group.docs.dependencies]
sphinx = ">=8.1"
sphinx-rtd-theme = ">=1"
sphinx-copybutton = "^0.5.2"
sphinx-autosummary-accessors = "^2025.3.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"