-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
87 lines (79 loc) · 1.79 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
[project]
name = "bookshelf-rcmip-emissions"
version = "0.1.2a1"
description = "Emissions dataset from RCMIP"
readme = "README.md"
requires-python = ">=3.11"
dependencies = [
"bookshelf-producer>=0.3.1b3",
"scmdata>=0.16.1",
]
[tool.ruff]
src = [
"src",
]
target-version = "py311"
line-length = 88
[tool.ruff.lint]
select = [
"E",
"W",
"F",
"I",
"D",
"PL",
"TRY",
"NPY",
"RUF",
"UP",
"S",
]
unfixable = [
"PD002",
]
ignore = [
"D100",
"D200",
"D400",
"UP007",
]
[tool.ruff.lint.per-file-ignores]
"test*.py" = [
"D",
"S101",
"PLR2004",
]
[tool.ruff.lint.isort]
known-first-party = [
"src",
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.format]
docstring-code-format = true
[tool.towncrier]
# This runs towncrier in non-python mode, so we need to specify the project name and version at run-time
name = "bookshelf-rcmip-emissions"
filename = "CHANGELOG.md"
directory = "changelog/"
title_format = "## RCMIP Emissions {version} ({project_date})"
underlines = [
"",
"",
"",
]
issue_format = "[#{issue}](https://github.com/climate-resource/bookshelf-rcmip-emissions/pull/{issue})"
type = [
{ directory = "breaking", name = "Breaking Changes", showcontent = true },
{ directory = "deprecation", name = "Deprecations", showcontent = true },
{ directory = "feature", name = "Features", showcontent = true },
{ directory = "improvement", name = "Improvements", showcontent = true },
{ directory = "fix", name = "Bug Fixes", showcontent = true },
{ directory = "docs", name = "Improved Documentation", showcontent = true },
{ directory = "trivial", name = "Trivial/Internal Changes", showcontent = false },
]
[tool.uv]
dev-dependencies = [
"mypy>=1.11.2",
"toml>=0.10.2",
]