-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
166 lines (154 loc) · 3.89 KB
/
Copy pathpyproject.toml
File metadata and controls
166 lines (154 loc) · 3.89 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "time-stream"
version = "1.2.0"
description = "Time-Stream: Time Series Toolkit for Rapid Environmental Analysis and Monitoring"
readme = "README.md"
authors = [
{ name = "Oladimeji Awe", email = "olaawe@ceh.ac.uk" },
{ name = "Lewis Chambers", email = "lewcha@ceh.ac.uk" },
{ name = "Leanne Durkan", email = "leadur@ceh.ac.uk" },
{ name = "Dom Ginger", email = "domgin@ceh.ac.uk" },
{ name = "Samantha Hewkin", email = "samhew@ceh.ac.uk" },
{ name = "Josh Holland", email = "joshol@ceh.ac.uk" },
{ name = "Nathan Shaw", email = "natsha@ceh.ac.uk" },
{ name = "Richard Smith", email = "ricsmi@ceh.ac.uk" },
{ name = "Simon Stanley", email = "simsta@ceh.ac.uk" },
{ name = "Oliver Swain", email = "os@ceh.ac.uk" },
]
maintainers = [
{ name = "Leanne Durkan", email = "leadur@ceh.ac.uk" },
{ name = "Dom Ginger", email = "domgin@ceh.ac.uk" },
{ name = "Samantha Hewkin", email = "samhew@ceh.ac.uk" },
{ name = "Nathan Shaw", email = "natsha@ceh.ac.uk" },
{ name = "Richard Smith", email = "ricsmi@ceh.ac.uk" },
{ name = "Simon Stanley", email = "simsta@ceh.ac.uk" },
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
license = { file = "LICENSE" }
dependencies = [
"config>=0.5.1",
"polars>=1.43.2",
"pyarrow>=25.0.0",
"pydantic>=2.13.4",
"isodate",
"numpy",
"scipy>=1.18.0",
"matplotlib>=3.11.1",
"altair>=6.2.2",
"pandas>=3.0.5",
"sphinx-autodoc-typehints>=3.10.0",
]
requires-python = ">= 3.12"
[dependency-groups]
dev = [
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "typecheck" },
{ include-group = "docs" },
]
lint = [
"ruff",
]
test = [
"coverage",
"pytest",
"pytest-cov",
]
typecheck = [
"pyright",
]
docs = [
"sphinx",
"shibuya>=2026.7.12",
"sphinx-copybutton",
"sphinx-design>=0.6.1",
"sphinx-iconify>=0.3.0",
"sphinx-autodoc-typehints",
"sphinx-autobuild",
"sphinx-contributors>=0.3.0",
"myst-parser",
"sphinx-tabs>=3.5.0",
"sphinxcontrib-mermaid>=2.1.0",
"nbsphinx",
"jupyter_sphinx",
"snowballstemmer<4"
]
[project.urls]
bugs = "https://github.com/NERC-CEH/time-stream/issues"
changelog = "https://github.com/NERC-CEH/time-stream/releases"
documentation = "https://nerc-ceh.github.io/time-stream/"
homepage = "https://github.com/NERC-CEH/time-stream"
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["src", "tests"]
exclude = ["src/time_stream/examples"]
[tool.ruff]
src = ["src", "tests"]
include = ["src/**.py", "tests/**.py"]
line-length = 120
exclude = [
"src/time_stream/docs"
]
[tool.ruff.lint]
select = [
"F",
"E",
"W",
"A",
"PLC",
"PLE",
"PLW",
"I",
"N816",
"ANN001",
"ANN201",
"ANN202",
"ANN205",
"ANN206",
]
[tool.ruff.lint.flake8-type-checking]
strict = true
[tool.ruff.lint.per-file-ignores]
# Ignore "import not at top of file" for examples code snippets
"src/time_stream/examples/*.py" = ["PLC0415"]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/", "tests/"]
omit = [
"*__init__.py",
"src/time_stream/__main__.py",
"src/time_stream/period.py",
"src/time_stream/examples/*",
"src/time_stream/docs/*",
]
[tool.coverage.report]
show_missing = true
skip_covered = true
fail_under = 90
exclude_also = [
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@overload",
"@typing.overload",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"raise NotImplementedError",
"except PackageNotFoundError",
"if __name__ == .__main__.",
"\\.\\.\\.",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=time_stream --cov-report=term-missing"
markers = ["slow: Marks slow tests"]
[tool.uv]
package = true
default-groups = ["dev"]