-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
148 lines (127 loc) · 3.12 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
[tool.poetry]
name = "climateset"
version = "0.0.0"
description = ""
authors = ["f-PLT <[email protected]>"]
readme = "README.md"
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.lab]
optional = true
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
numpy = "^1.26.4"
netcdf4 = "^1.6.5"
xmip = "^0.7.2"
tqdm = "^4.66.4"
pint = "^0.23"
xesmf = "^0.8.5"
xarray = "^2024.5.0"
esgf-pyclient = "^0.3.1"
myproxyclient = "^2.1.1"
h5netcdf = "^1.3.0"
typer = "^0.12.5"
[tool.poetry.group.secondary.dependencies]
jinja2 = ">=3.1.4"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
pylint = "^3.0.3"
isort = "^5.13.2"
bump-my-version = "^0.16.2"
flynt = "^1.0.1"
flake8 = "^7.0.0"
pre-commit = "^3.7.0"
flake8-pyproject = "^1.2.3"
black = "^24.4.2"
nox = "^2024.4.15"
docformatter = {extras = ["tomli"], version = "^1.7.5"}
[tool.poetry.group.lab.dependencies]
jupyterlab = "^4.0.10"
notebook = "^7.0.6"
jupyterlab-lsp = "^5.0.1"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
#
# Scripts
#
[tool.poetry.scripts]
climateset = "climateset.cli:app"
#
# Tools
#
[tool.bumpversion]
current_version = "0.0.0"
commit = true
message = "Version {new_version} released."
tag = true
tag_name = "{new_version}"
parse = '(?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+) (?P<releaseTime>.*)?'
serialize = [
"{major}.{minor}.{patch}",
"{utcnow:%Y-%m-%dT%H:%M:%SZ}"
]
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "Makefile"
search = "APP_VERSION := {current_version}"
replace = "APP_VERSION := {new_version}"
[[tool.bumpversion.files]]
filename = "CHANGES.md"
search = '''
[Unreleased](https://github.com/RolnickLab/ClimateSetExtension/tree/main) (latest)
-------------------------------------------------------------------------------------
'''
replace = '''
[Unreleased](https://github.com/RolnickLab/ClimateSetExtension/tree/main) (latest)
-------------------------------------------------------------------------------------
[//]: # (New changes here in list form)
[{new_version}](https://github.com/RolnickLab/ClimateSetExtension/tree/{new_version}) ({utcnow:%Y-%m-%d})
-------------------------------------------------------------------------------------
'''
[tool.pylint]
disable = "C0114,C0115,C0116,R0903,R1710,W1203,W0511,W0718,C0302"
max-line-length = 120
max-locals = 20
max-args = 16
max-attributes = 20
ignore = [
".git",
"migrations",
"__pycache__"
]
[tool.flake8]
max-line-length = 120
ignore = ["E203", "E266", "E501", "W503"]
max-complexity = 20
per-file-ignores = []
exclude = [
".git",
"migrations",
"__pycache__"
]
[tool.black]
line-length = 120
target-version = ["py311"]
[tool.isort]
profile = "black"
[tool.flynt]
line-length = 120
transform-concats = true
verbose = true
[tool.pytest.ini_options]
testpaths = [
"tests",
]
markers = ["offline: mark a test as needing to be run offline.", ]
[tool.docformatter]
style = "google"
pre-summary-newline = true
wrap-descriptions = 120
wrap-summaries = 120
blank = false
exclude = []
recursive = true