-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
112 lines (97 loc) · 2.27 KB
/
Copy pathpyproject.toml
File metadata and controls
112 lines (97 loc) · 2.27 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "isoperiod"
version = "0.1.0"
description = "ISO 8601 period and duration arithmetic, including offsets from the natural boundary, for defining sampling resolution and periodicity in timeseries data"
readme = "README.md"
authors = [
{name = "Richard Smith", email = "ricsmi@ceh.ac.uk"}
]
maintainers = [
{name = "Richard Smith", email = "ricsmi@ceh.ac.uk"}
]
classifiers = [
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
]
license = { file = "LICENSE" }
dependencies = []
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>=2025.9.25",
"sphinx-copybutton",
"sphinx-design>=0.6.1",
"sphinx-iconify>=0.2.1",
"sphinx-autodoc-typehints",
"sphinx-autobuild",
"sphinx-contributors>=0.2.7",
"myst-parser",
]
[project.urls]
bugs = "https://github.com/richjam/isoperiod/issues"
changelog = "https://github.com/richjam/isoperiod/releases"
documentation = "https://richjam.github.io/isoperiod/"
homepage = "https://github.com/richjam/isoperiod"
[tool.pyright]
venvPath = "."
venv = ".venv"
include = ["src", "tests"]
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # Pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
]
[tool.coverage.run]
branch = true
parallel = true
source = ["src/", "tests/"]
omit = ["src/*/__main__.py"]
[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=src --cov-report=term-missing"
[tool.uv]
package = true
default-groups = ["dev"]