-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
150 lines (130 loc) · 3.39 KB
/
pyproject.toml
File metadata and controls
150 lines (130 loc) · 3.39 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
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
[tool.poetry]
name = "downscaling"
version = "0.0.0"
description = ""
authors = ["paulaharder <paula.harder@mila.quebec>", "f-PLT <fplt.softwaredeveloper@gmail.com>"]
readme = "README.md"
[tool.poetry.group.lab]
optional = true
[tool.poetry.dependencies]
python = ">=3.10,<3.13"
cdsapi = "^0.6.1"
xarray = "^2024.2.0"
h5py = "^3.10.0"
wandb = "^0.17.9"
matplotlib = "^3.8.3"
netcdf4 = "^1.6.5"
ipykernel = "^6.29.4"
torch = "^2.4.1"
torchvision = "^0.19.1"
torchaudio = "^2.4.1"
accelerate = "^0.34.2"
jupyter = "^1.1.1"
dask = "^2024.11.2"
zarr = "^2.18.3"
xbatcher = "^0.4.0"
cartopy = "^0.24.1"
torchdata = "^0.10.1"
[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
pylint = "^3.0.3"
black = "^23.12.1"
isort = "^5.13.2"
bump-my-version = "^0.16.2"
flynt = "^1.0.1"
pre-commit = "^3.8.0"
docformatter = {extras = ["tomli"], version = "^1.7.5"}
nox = "^2024.4.15"
flake8 = "^7.1.1"
flake8-pyproject = "^1.2.3"
[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]
dt-download = "downscaling.download.cli:main"
#
# 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 = "CHANGES.md"
search = '''
[Unreleased](https://github.com/RolnickLab/downscaling-transferability/tree/main) (latest)
-------------------------------------------------------------------------------------
'''
replace = '''
[Unreleased](https://github.com/RolnickLab/downscaling-transferability/tree/main) (latest)
-------------------------------------------------------------------------------------
[//]: # (New changes here in list form)
[{new_version}](https://github.com/RolnickLab/downscaling-transferability/tree/{new_version}) ({utcnow:%Y-%m-%d})
-------------------------------------------------------------------------------------
'''
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
[[tool.bumpversion.files]]
filename = "Makefile.variables"
search = "APP_VERSION := {current_version}"
replace = "APP_VERSION := {new_version}"
[tool.pylint]
disable = "C0114,C0115,C0116,R0903,R1710,W1203"
max-line-length = 120
max-locals = 20
max-args = 16
max-attributes = 20
ignore = [
".git",
"migrations",
"__pycache__",
"spherical_harmonics_ylm.py"
]
[tool.flake8]
max-line-length = 120
ignore = ["E203", "E266", "E501", "W503"]
docstring-convention = "numpy"
max-complexity = 20
per-file-ignores = []
exclude = [
".git",
"migrations",
"__pycache__",
"downscaling/spherical_harmonics_ylm.py"
]
[tool.black]
line-length = 120
target-version = ["py311"]
extend-exclude = "downscaling/spherical_harmonics_ylm.py"
[tool.isort]
skip = ["downscaling/spherical_harmonics_ylm.py"]
profile = "black"
[tool.flynt]
line-length = 120
transform-concats = true
verbose = true
exclude = "downscaling/spherical_harmonics_ylm.py"
[tool.docformatter]
style = "numpy"
pre-summary-newline = true
wrap-descriptions = 120
wrap-summaries = 120
blank = false
recursive = true
exclude = ["spherical_harmonics_ylm.py"]