-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (142 loc) · 4.07 KB
/
pyproject.toml
File metadata and controls
154 lines (142 loc) · 4.07 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "indsl"
version = "8.9.0"
description = "Industrial Data Science Library by Cognite"
authors = [{ name = "Cognite" }]
license = { text = "Apache-2.0" }
readme = "README.md"
requires-python = ">=3.11,<3.15"
classifiers = ["Topic :: Scientific/Engineering"]
dependencies = [
"scipy~=1.17.0",
"pandas~=3.0.1",
"typeguard>=4.0.0,<5",
"packaging>=26.0,<27",
"numpy>=2.0.0,<3",
"pywavelets>=1.6.0,<2",
]
[project.urls]
Homepage = "https://indsl.docs.cognite.com"
Repository = "https://github.com/cognitedata/indsl"
Documentation = "https://indsl.docs.cognite.com"
[project.optional-dependencies]
numba = ["numba>=0.65,<0.66"]
plot = ["matplotlib>=3.4.0,<4"]
modeling = ["csaps>=1.1.0,<2", "kneed>=0.8.0,<0.9"]
stats = ["statsmodels>=0.14.0,<0.15"]
scikit = ["scikit-image>=0.26.0,<0.27", "scikit-learn>=1.3.0,<2"]
fluids = ["fluids>=1.0.22,<2"]
all = ["indsl[numba,plot,modeling,stats,scikit,fluids]"]
[dependency-groups]
dev = [
"pre-commit>=4.0.0,<5",
"black>=26.0.0,<27",
"ipykernel>=7.0.0,<8",
"pytest-cov>=7,<8",
"commitizen>=4.11.6,<5",
"docstring-parser>=0.17.0,<0.18",
"docstring-to-markdown>=0.17,<0.18",
"coverage>=7.0.0,<8",
"ruff>=0.15.0,<0.16",
"pytest>=9.0.2,<10",
"requests>=2.0.0",
]
docs = [
"ipykernel>=7.0.0,<8",
"matplotlib>=3.4.0,<4",
"pytest-cov>=7,<8",
"commitizen>=4.11.6,<5",
"docstring-parser>=0.17.0,<0.18",
"docstring-to-markdown>=0.17,<0.18",
"myst-parser>=5.0.0,<6",
"coverage>=7.0.0,<8",
"Sphinx<9.2",
"sphinx-rtd-theme>=3.0.0,<4",
"nbsphinx>=0.9.0,<0.10",
"sphinx-gallery>=0.20.0,<0.21",
"sphinx-prompt>=1.10.0,<2",
]
[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 = "py311"
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
# UP045: Use `X | Y` instead of Optional
ignore = ["E501", "E731", "W605","D100", "D104", "D105", "RUF002", "UP006", "UP007", "UP035", "UP045"]
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.9.0"
tag_format = "v$version"
version_provider = "pep621"
version_files = ["pyproject.toml:version", "indsl/_version.py:__version__"]
[tool.pyright]
# Added just so pylance in vscode doesn't complain too much
pythonVersion = "3.13"
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"