-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
103 lines (92 loc) · 2.76 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
[tool.poetry]
name = "cognite_toolkit"
version = "0.3.12"
description = "Official Cognite Data Fusion tool for project templates and configuration deployment"
authors = ["Cognite AS <[email protected]>"]
license = "Apache-2"
readme = "README.md"
documentation = "https://developer.cognite.com/sdks/toolkit/"
homepage = "https://developer.cognite.com/sdks/toolkit/"
repository = "https://github.com/cognitedata/toolkit"
packages = [{include = "cognite_toolkit", from = "."}]
include = ["cognite_toolkit/*", "cognite_toolkit/**/*"]
[tool.poetry.dependencies]
python = "^3.10"
python-dotenv = "^1.0.0"
cognite-sdk = {version = "^7.63.5", extras = ["pandas"]}
pandas = ">=1.5.3, <3.0"
pyyaml = "^6.0.1"
typer = {version = ">=0.12.0, <1.0", extras = ["all"]}
sentry-sdk = "^2.1.0"
questionary = "^2.0.1"
mixpanel = "^4.10.1"
tomli = { version = "^2.0.1", python = "<3.11" }
# 22.0 was when explicit support for 3.11 was added.
packaging = ">=22.0,<25.0"
typing-extensions = "^4.0"
toml = "^0.10.2"
[tool.poetry.group.dev.dependencies]
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 = "^5.0.0"
toml = { version = "^0.10.2", python = ">=3.11" }
pytest-freezegun = "^0.4.2"
pytest-cov = "^6.0.0"
setuptools = "^75.0.0"
fastparquet = "^2024.5.0"
pyperclip = "^1.9.0"
pydantic = "^2.9.0"
types-requests = "^2.32.0.20241016"
[tool.poetry.scripts]
cdf-tk = "cognite_toolkit._cdf:app"
cdf = "cognite_toolkit._cdf:app"
[tool.coverage.report]
show_missing = true
[tool.pytest.ini_options]
minversion = 8.0
testpaths = [
"tests",
# In the case of doctests.
"cognite_toolkit",
]
norecursedirs = "cognite_toolkit/_builtin_modules"
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
exclude = [
"cognite_toolkit/_builtin_modules/examples/*",
"cognite_toolkit/_builtin_modules/inrobot/*",
"cognite_toolkit/_builtin_modules/bootcamp/*",
]
[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",
"cognite_toolkit/_builtin_modules/inrobot/*",
"cognite_toolkit/_builtin_modules/examples/*",
"cognite_toolkit/_builtin_modules/bootcamp/*",
]
[tool.ruff.lint]
exclude = [
"cognite_toolkit/_builtin_modules/inrobot/*",
"cognite_toolkit/_builtin_modules/examples/*",
"cognite_toolkit/_builtin_modules/bootcamp/*",
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"