-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
190 lines (172 loc) · 4.19 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
[project]
name = "bookshelf-root"
version = "0.4.1a1"
description = "A collection of curated climate data sets"
readme = "README.md"
authors = [
{ name = "Jared Lewis", email = "jared.lewis@climate-resource.com" }
]
requires-python = ">=3.10"
dependencies = [
"bookshelf",
"bookshelf-producer",
]
[tool.uv]
dev-dependencies = [
"pytest>=7.3.1",
"pytest-cov>=4.0.0",
"pytest-mock>=3.11.1",
"pytest-xdist>=3.3.1",
"requests-mock>=1.11.0",
"mypy>=1.2.0",
"pre-commit>=3.3.1",
"towncrier>=23.6.0",
"liccheck>=0.9.1",
# Stubs
"types-pyyaml>=6.0.12.20240917",
"boto3-stubs[essential]>=1.35.39",
"types-requests>=2.32.0.20240914",
"pandas-stubs>=2.2.3.241009",
# Docs
"mkdocs>=1.6.0",
"mkdocstrings[python]>=0.25.0",
"mkdocs-material>=9.5.0",
"mkdocs-gen-files>=0.5.0",
"mkdocs-section-index>=0.3.9",
"mkdocs-literate-nav>=0.6.1",
"mkdocs-autorefs>=1.0.1",
"mkdocs-jupyter>=0.24.0",
"myst-nb>=1.1.1",
"jupyterlab>=4.2.0",
"jupytext>=1.16.3",
"matplotlib>=3.9.2",
"mike>=2.1.3",
"mkdocs-minify-plugin>=0.8.0",
]
[tool.uv.workspace]
members = ["packages/*"]
[tool.uv.sources]
bookshelf = { workspace = true }
bookshelf-producer = { workspace = true }
[tool.coverage.run]
source = ["src", "packages"]
branch = true
[tool.coverage.report]
fail_under = 90
skip_empty = true
show_missing = true
# Regexes for lines to exclude from consideration in addition to the defaults
exclude_also = [
# Don't complain about missing type checking code:
"if TYPE_CHECKING",
]
[tool.mypy]
strict = true
# prevent unimported libraries silently being treated as Any
#disallow_any_unimported = true
# show error codes on failure with context
show_error_codes = true
show_error_context = true
# warn if code can't be reached
warn_unreachable = true
# importing following uses default settings
follow_imports = "normal"
exclude = [
"build",
"dist",
"notebooks",
"scripts",
"stubs",
"tests",
]
[[tool.mypy.overrides]]
module = [
"scmdata",
"pooch",
"jupytext",
"papermill",
"click_log",
"datapackage"
]
ignore_missing_imports = true
[tool.jupytext]
formats = "ipynb,py:percent"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
"--ignore=packages/bookshelf/hatch_build.py"
]
[tool.towncrier]
package = "bookshelf"
package_dir = "src"
filename = "docs/changelog.md"
directory = "changelog/"
title_format = "## bookshelf {version} ({project_date})"
underlines = ["", "", ""]
issue_format = "[#{issue}](https://github.com/climate-resource/bookshelf/pull/{issue})"
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecation"
name = "Deprecations"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "Features"
showcontent = true
[[tool.towncrier.type]]
directory = "improvement"
name = "Improvements"
showcontent = true
[[tool.towncrier.type]]
directory = "fix"
name = "Bug Fixes"
showcontent = true
[[tool.towncrier.type]]
directory = "docs"
name = "Improved Documentation"
showcontent = true
[[tool.towncrier.type]]
directory = "trivial"
name = "Trivial/Internal Changes"
showcontent = false
[tool.liccheck]
authorized_licenses = [
"bsd",
"bsd license",
"BSD 3-Clause",
"CC0",
"apache",
"apache 2.0",
"apache software",
"apache software license",
"Apache License, Version 2.0",
"Historical Permission Notice and Disclaimer (HPND)",
"isc license",
"isc license (iscl)",
"gnu lgpl",
"lgpl with exceptions or zpl",
"LGPLv2+",
"GNU Lesser General Public License v2 (LGPLv2)",
"GNU Lesser General Public License v2 or later (LGPLv2+)",
"mit",
"mit license",
"Mozilla Public License 2.0 (MPL 2.0)",
"python software foundation",
"python software foundation license",
"zpl 2.1",
]
# This starting list is relatively conservative. Depending on the project, it
# may make sense to move some of these into the authorized list
unauthorized_licenses = [
"agpl",
"gnu agpl",
"gpl v3",
"gplv3",
"gpl v2",
"gplv2",
"gpl v1",
"gplv1",
]