-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
98 lines (87 loc) · 1.97 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
[tool.poetry]
name = "xverif"
version = "0.1.0"
description = "Xarray-based package for forecasts/simulations verification"
authors = [
"Gionata Ghiggi, <[email protected]>",
"Francesco Zanetta, <[email protected]>",
]
readme = "README.md"
[tool.poetry.dependencies]
python = ">=3.10,<3.12"
xarray = "^2023.4.2"
dask = { extras = ["distributed"], version = "^2023.4.1" }
numba = "^0.57.0"
rechunker = "^0.5.1"
flox = "^0.7.1"
scoringrules = "^0.2.0"
scipy = "^1.10.1"
typing-extensions = "^4.6.3"
graphviz = "^0.20.1"
[tool.poetry.group.dev.dependencies]
pytest = "^7.3.1"
ruff = "^0.0.265"
black = "^23.3.0"
pre-commit = "^3.3.1"
graphviz = "^0.20.1"
[tool.poetry.group.docs.dependencies]
mkdocs = "^1.4.3"
mkdocs-material = "^9.1.11"
mkdocstrings = { extras = ["python"], version = "^0.21.2" }
jupyter = "^1.0.0"
nbconvert = "^7.4.0"
ipykernel = "^6.23.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.black]
line-length = 88
target-version = ["py310"]
[tool.ruff]
fix = true
cache-dir = "~/.cache/ruff"
dummy-variable-rgx = "^_$"
exclude = ["docs/"]
ignore-init-module-imports = true
line-length = 88
select = [
"D", # docstrings
"F", # pyflakes
"E", # pycodestyle
"I", # isort
"W",
"YTT", # flake8-2020
"B", # flake8-bugbear
"Q", # flake8-quotes
"PLE", # pylint
"PLR",
"PLW",
"PIE", # misc lints
"PYI", # flake8-pyi
"TID", # tidy imports
"ISC", # implicit string concatenation
"TCH", # type-checking imports
]
ignore = [
"D401",
"E402",
"E731",
"E721", # TO REMOVE
"E501",
"B006",
"PLR0915",
"PGH001",
"RET504",
"S101",
"F722",
"PLR2004",
"PLR0913",
]
unfixable = ["ERA001", "F401", "F841", "T201", "T203"]
src = ["xverif", "tests", "tutorials"]
target-version = "py310"
[tool.ruff.pydocstyle]
convention = "numpy"
[tool.codespell]
skip = 'pyproject.toml'
ignore-words-list = 'mape,otherlowercasewords'