-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
170 lines (155 loc) · 4.51 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
168
169
170
[tool.poetry]
name = "indsl"
version = "8.6.0"
description = "Industrial Data Science Library by Cognite"
authors = ["Cognite"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/cognitedata/indsl"
documentation = "https://indsl.docs.cognite.com"
homepage = "https://indsl.docs.cognite.com"
classifiers = ["Topic :: Scientific/Engineering"]
[tool.poetry.dependencies]
# Core dependencies
python = ">=3.10,<3.13"
scipy = "~1.14.0"
pandas = "~2.2.0"
typeguard = "^4.0.0"
packaging = "^23.0"
numpy = "^2.0.0"
typing-extensions = "^4.6.3"
# Optional extras dependencies
fluids = { version = "^1.0.22", optional = true }
matplotlib = { version = "^3.4.0", optional = true }
numba = { version = "^0.60.0", optional = true }
kneed = { version = "^0.8.0", optional = true }
csaps = { version = "^1.1.0", optional = true }
statsmodels = { version = "^0.14.0", optional = true }
scikit-image = { version = "^0.25.0", optional = true }
scikit-learn = { version = "^1.3.0", optional = true }
pywavelets = "^1.6.0"
[tool.poetry.group.dev.dependencies]
pre-commit = { version = "^4.0.0", python = "^3.6.1" }
black = "^24.0.0"
ipykernel = "^6.9.1"
pytest-cov = "^6.0.0"
commitizen = "^4.0.0"
jupyter-contrib-nbextensions = "^0.7.0"
jupyter_nbextensions_configurator = "^0.6.0"
docstring-parser = "^0.15"
toml = "^0.10.2"
marshmallow = "^3.17.0"
docstring-to-markdown = "^0.10"
coverage = "^7.0.0"
ruff = "^0.8.0"
pytest = "^8.1.1"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
ipykernel = "^6.9.1"
matplotlib = "^3.4.0"
pytest-cov = "^6.0.0"
commitizen = "^4.0.0"
jupyter-contrib-nbextensions = "^0.7.0"
jupyter_nbextensions_configurator = "^0.6.0"
docstring-parser = "^0.15"
toml = "^0.10.2"
marshmallow = "^3.17.0"
docstring-to-markdown = "^0.10"
myst-parser = "^4.0.0"
coverage = "^7.0.0"
Sphinx = "<8.2"
sphinx-rtd-theme = "^3.0.0"
nbsphinx = "^0.9.0"
sphinx-gallery = "^0.18.0"
sphinx-prompt = "^1.4.0"
[tool.poetry.extras]
numba = ["numba"]
plot = ["matplotlib"]
modeling = ["csaps", "kneed"]
stats = ["statsmodels"]
scikit = ["scikit-image", "scikit-learn"]
fluids = ["fluids"]
all = ["fluids", "matplotlib", "numba", "csaps", "kneed", "statsmodels", "scikit-image", "scikit-learn"]
[tool.black]
line-length = 120
include = '\.pyi?$'
exclude = '''
/(
\.eggs
| \.git
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| tests/.*/setup.py
)/
'''
[tool.ruff]
# Keep in sync with .pre-commit-config.yaml
line-length = 120
target-version = "py38"
exclude = ["tests", "examples", "docs-source", "docs"]
[tool.ruff.lint]
# E501: line too long
# E731: do not assign a lambda expression, use a def
# W605: invalid escape sequence
# D100: Missing docstring in public module
# D104: Missing docstring in public package
# D105: Missing docstring in magic method
# RUF002: Missing docstring in public function
# UP006: Use `list` instead of `List` for type annotations
# UP007: Use `X | Y` for type annotations
ignore = ["E501", "E731", "W605","D100", "D104", "D105", "RUF002", "UP006", "UP007", "UP035"]
select = ["D", "E", "W", "F", "I", "T", "RUF", "TID", "UP"]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.lint.isort]
lines-after-imports = 2
lines-between-types = 1
split-on-trailing-comma = false
known-third-party = ["pytest"]
[tool.commitizen]
name = "cz_conventional_commits"
version = "8.6.0"
tag_format = "v$version"
version_files = ["pyproject.toml:version"]
[tool.pyright]
# Added just so pylance in vscode doesn't complain too much
pythonVersion = "3.10"
typeCheckingMode = "basic"
include = ["indsl"]
ignore = ["tests"]
reportImportCycles = false
reportMissingTypeStubs = false
reportMissingImports = false
reportShadowedImports = "none"
reportUnnecessaryTypeIgnoreComment = false
reportUnusedImport = true
reportUnusedVariable = true
reportUnnecessaryIsInstance = true
reportUnnecessaryComparison = true
reportUnnecessaryCast = true
reportPrivateUsage = true
reportDuplicateImport = true
reportConstantRedefinition = true
reportOverlappingOverload = true
reportInconsistentConstructor = true
reportImplicitStringConcatenation = true
[tool.pytest.ini_options]
markers = [
"core: Unit tests for the core library functions",
"extras: Unit tests for the optional extras functions"
]
addopts = "--cov=indsl --cov-report=html --cov-branch"
testpaths = "tests/"
log_level = "INFO"
log_format = "%(asctime)s [%(levelname)8s] %(message)s (%(filename)s:%(lineno)s)"
log_date_format="%Y-%m-%d %H:%M:%S"
[build-system]
requires = ["poetry>=0.12"]
build-backend = "poetry.masonry.api"