-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (149 loc) · 4.13 KB
/
pyproject.toml
File metadata and controls
166 lines (149 loc) · 4.13 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
[project]
name = "cognite_toolkit"
version = "0.0.0"
description = "Official Cognite Data Fusion tool for project templates and configuration deployment"
authors = [
{name ="Cognite AS", email="support@cognite.com"}
]
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
]
dependencies = [
"python-dotenv >=1.0.0",
"cognite-sdk>=7.87.0,<8.0.0",
"httpx>=0.28.1",
"pandas >=1.5.3, <3.0.0",
"pyyaml >=6.0.1",
"typer >=0.12.0, <1.0.0",
"rich >=13.9.4",
"questionary >=2.0.1",
"tomli >=2.0.1, <3.0.0; python_version < '3.11'",
"packaging >=25",
"typing-extensions >=4.0.0",
"toml >=0.10.2",
"sentry-sdk >=2.1.0",
"mixpanel >=4.10.1",
"pydantic >=2.12.0",
"python-dateutil>= 2.9.0",
# Pip is used in the cognite run function local
"pip>=25.0.1",
"filelock>=3.18.0",
]
[project.urls]
Homepage = "https://docs.cognite.com/cdf/deploy/cdf_toolkit/"
Changelog = "https://github.com/cognitedata/toolkit/releases"
GitHub = "https://github.com/cognitedata/toolkit"
Documentation = "https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/resource_library"
[dependency-groups]
dev = [
"mypy >=1.8.0",
"pre-commit >=4.0.0",
"pytest >=8.0.0",
"pytest-icdiff", # Used for better diffs in pytest
"pytest-regressions >=2.4.2",
"pytest-xdist >=3.6.1",
"pytest-rerunfailures >=14.0",
"types-PyYAML >=6",
"types-toml >=0.10.8.20240310",
"twine >=6.0.0",
"toml >=0.10.2; python_version >= '3.11'",
"pytest-freezegun >=0.4.2",
"pytest-cov >=6.0.0",
"setuptools >=75.0.0",
"fastparquet >=2024.5.0",
"types-requests >=2.32.0.20241016",
"types-python-dateutil>=2.9.0.20250708",
"marko >=2.1.2",
"responses>=0.25.7",
"respx>=0.22.0",
"pytest-json-report>=1.5.0", # For generating JSON reports from tests, this is used in the smoke tests
]
[project.optional-dependencies]
table = [
"pyarrow>=20.0.0",
"openpyxl>=3.1.5",
]
sql = [
"sqlparse >=0.5.3",
]
v08 = [
"cognite-neat >=1.0.43"
]
[project.scripts]
cdf-tk = "cognite_toolkit._cdf:app"
cdf = "cognite_toolkit._cdf:app"
[tool.uv]
package = true
[tool.coverage.run]
source = ["cognite_toolkit"]
omit = [
# The apps module only holds CLI entrypoints, so we skip it in coverage reports'
"cognite_toolkit/_cdf_tk/apps/*",
# Exclude CLI entrypoints
"cognite_toolkit/_cdf.py",
]
[tool.coverage.report]
show_missing = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
"from typing_extensions import Self",
]
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = [
"tests",
# In the case of doctests.
"cognite_toolkit",
]
markers = [
"toolkit: big smoke tests",
]
[tool.mypy]
check_untyped_defs = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
follow_imports = "normal"
ignore_missing_imports = true
warn_redundant_casts = true
warn_unused_ignores = true
exclude = []
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_forbid_extra = true
init_typed = true
# We use dynamic alias creation as much as possible. This is to ensure
# all aliases are consistentenly camelCase.
warn_required_dynamic_aliases = false
[tool.ruff]
line-length = 120
[tool.ruff.format]
exclude = [
# Ruff messes up the docstrings which are expected to be in Markdown format
"cognite_toolkit/_cdf_tk/commands/_changes.py",
]
[tool.ruff.lint]
exclude = []
[build-system]
requires = ["uv_build>=0.10.0,<0.11.0"]
build-backend = "uv_build"
[tool.uv.build-backend]
module-name = "cognite_toolkit"
module-root = ""