-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
79 lines (71 loc) · 2.3 KB
/
Copy pathpyproject.toml
File metadata and controls
79 lines (71 loc) · 2.3 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
[project]
name = "ref-backend"
version = "0.2.3"
description = "Backend for the Climate Rapid Evaluation Framework"
requires-python = ">=3.11"
dependencies = [
"fastapi[standard]<1.0.0,>=0.114.2",
"pydantic>2.0",
"psycopg[binary]<4.0.0,>=3.1.13",
"pydantic-settings<3.0.0,>=2.13.1",
"sentry-sdk[fastapi]>=2.0.0",
"climate-ref[aft-providers,postgres]>=0.13.1,<0.14",
"loguru",
"pyyaml>=6.0",
"fastapi-sqlalchemy-monitor>=1.1.3",
]
[dependency-groups]
dev = [
"pytest>=9.0",
"mypy>=1.8.0",
"ruff>=0.15.0",
"pre-commit>=4.0",
"coverage>=7.4.3",
# "climate-ref-example",
"pandas-stubs>=2.3.2.250827",
"types-pyyaml>=6.0.12.20250915",
"bump-my-version>=0.28.1",
"towncrier>=24.8.0",
]
[tool.uv.sources]
# Temporary pin for testing
# climate-ref = { git = "https://github.com/Climate-REF/climate-ref", subdirectory = "packages/climate-ref", tag="v0.7.0" }
# climate-ref-example = { git = "https://github.com/Climate-REF/climate-ref", subdirectory = "packages/climate-ref-example", tag="v0.7.0" }
# Uncomment the following line to use a local version of climate-ref
#climate-ref = { path = "../../climate-ref/packages/climate-ref", editable = true }
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.bumpversion]
current_version = "0.2.3"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
tag = true
sign_tags = false
tag_name = "v{new_version}"
tag_message = "Bump version: {current_version} → {new_version}"
commit = true
message = "Bump version: {current_version} → {new_version}"
pre_commit_hooks = [
"uv lock",
"git add uv.lock",
"uv run towncrier build --yes --config ../towncrier.toml",
"git add ../CHANGELOG.md",
"git add -u ../changelog",
]
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[[tool.bumpversion.files]]
filename = "../frontend/package.json"
search = "\"version\": \"{current_version}\""
replace = "\"version\": \"{new_version}\""
[[tool.bumpversion.files]]
filename = "../towncrier.toml"
search = "version = \"{current_version}\""
replace = "version = \"{new_version}\""
[tool.mypy]
strict = true
exclude = ["venv", ".venv", "alembic"]
mypy_path = ["stubs"]