-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathpyproject.toml
166 lines (158 loc) · 4.11 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
[build-system]
requires = ["flit_core >=3.2,<4"]
build-backend = "flit_core.buildapi"
[project]
name = "icclim"
authors = [
{name = "Christian Page", email = "[email protected]"}
]
maintainers = [
{name = "Christian Page", email = "[email protected]"},
{name = "Abel Aoun", email = "[email protected]"}
]
readme = "README.rst"
license = {file = "LICENSE"}
classifiers = [
"Programming Language :: Python",
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.9",
"Topic :: Scientific/Engineering :: Atmospheric Science"
]
dynamic = ["version", "description"]
requires-python = ">=3.9"
keywords = ["netcdf", "climate", "climate-indices", "climate-indicators", "xarray"]
dependencies = [
"numpy>=1.16",
"xarray>=2022.6",
"xclim>=0.45, <=0.48",
"cf_xarray>=0.7.4",
"cftime>=1.4.1",
"dask[array]",
"netCDF4>=1.5.7",
"psutil",
"zarr",
"rechunker>=0.3, !=0.4",
"fsspec",
"pandas>=1.3",
"dateparser",
"pint",
"jinja2",
"psutil"
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-cov"
]
dev = [
"flit",
"ruff",
"pip",
"pre-commit>=2.9",
"sphinx-autobuild",
"docstring_parser"
]
doc = [
"sphinx",
"sphinx_codeautolink",
"sphinx_copybutton",
"sphinx_lfs_content",
"sphinx-autoapi",
"pydata-sphinx-theme",
"nbsphinx",
"ipython"
]
[project.urls]
Documentation = "https://icclim.readthedocs.io/en/latest/how_to/index.html"
Source = "https://github.com/cerfacs-globc/icclim/"
[tool.ruff]
[tool.ruff.format]
# Enable reformatting of code snippets in docstrings.
docstring-code-format = true
[tool.ruff.lint]
select = [
"F", # Pyflakes
"E", # pycodestyle error
"W", # pycodestyle warn
"C90", # mccabe
"I", # isort
"N", # pep8-naming
"D", # pydocstyle
"UP", # pyupgrade
"YTT", # flake8-2020
"ANN", # flake8-annotations
"ASYNC", # flake8-async
"S", # flake8-bandit
"BLE", # flake8-blind-except
# "FBT", # flake8-boolean-trap, to add
"B", # flake8-bugbear
"A", # flake8-builtins
"COM", # flake8-commas
"C4", # flake8-comprehensions
"DTZ", # flake8-datetimez
"T10", # flake8-debugger
"DJ", # flake8-django
"EM", # flake8-errmsg
"EXE", # flake8-executable
"FA", # flake8-future-annotations
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
"G", # flake8-logging-format
"INP", # flake8-no-pep420
"PIE", # flake8-pie
"T20", # flake8-print
"PYI", # flake8-pyi
"PT", # flake8-pytest-style
"Q", # flake8-quotes
"RSE", # flake8-raise
"RET", # flake8-return
"SLF", # flake8-self
"SLOT", # flake8-slots
"SIM", # flake8-simplify
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"ARG", # flake8-unused-arguments
"PTH", # flake8-use-pathlib
"TD", # flake8-todos
"ERA", # eradicate
"PGH", # pygrep-hooks
"PL", # Pylint
"TRY", # tryceratops
"FLY", # flynt
"NPY", # NumPy-specific rules
"AIR", # Airflow
"PERF", # Perflint
# "FURB", # refurb, preview
"LOG", # flake8-logging
"RUF" # Ruff-specific rules
]
ignore = [
# -- Rules to add
"PLR0913", # too many arguments in function, to add
"PLR2004", # Magic values, to add
"PLR0915", # Too many statement, to add
# -- True ignore
"ISC001", # String concat on same line, Managed by ruff format
"COM812", # No comma at the end, Managed by ruff format
"ANN101", # useless typing for `self`, will be removed from ruff
"ANN102", # useless typing for `cls`, will be removed from ruff
"ANN002", # Allow no typing for `*args`
"ANN003" # Allow no typing for `**kwargs`
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # Allow asserts allowed in tests.
"S307", # Allow eval in tests.
"ARG", # Allow unused function args for tests fixtures.
"FBT", # Allow booleans as positional arguments in tests.
"D", # Disable docstring check for tests.
"ANN", # Disable type check for tests.
"SLF001" # Allow access to private values from tests.
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"