@@ -86,8 +86,8 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
86
86
[tool .mypy ]
87
87
enable_error_code = " redundant-self"
88
88
exclude = [
89
- ' xarray/util/generate_.*\.py' ,
90
- ' xarray/datatree_/.*\.py' ,
89
+ ' xarray/util/generate_.*\.py' ,
90
+ ' xarray/datatree_/.*\.py' ,
91
91
]
92
92
files = " xarray"
93
93
show_error_codes = true
@@ -247,7 +247,6 @@ reportMissingTypeStubs = false
247
247
[tool .ruff ]
248
248
builtins = [" ellipsis" ]
249
249
extend-exclude = [
250
- " doc" ,
251
250
" _typed_ops.pyi" ,
252
251
]
253
252
target-version = " py39"
@@ -256,6 +255,9 @@ target-version = "py39"
256
255
# E402: module level import not at top of file
257
256
# E501: line too long - let black worry about that
258
257
# E731: do not assign a lambda expression, use a def
258
+ extend-safe-fixes = [
259
+ " TID252" , # absolute imports
260
+ ]
259
261
ignore = [
260
262
" E402" ,
261
263
" E501" ,
@@ -269,9 +271,6 @@ select = [
269
271
" I" , # isort
270
272
" UP" , # Pyupgrade
271
273
]
272
- extend-safe-fixes = [
273
- " TID252" , # absolute imports
274
- ]
275
274
276
275
[tool .ruff .lint .per-file-ignores ]
277
276
# don't enforce absolute imports
@@ -284,6 +283,13 @@ known-first-party = ["xarray"]
284
283
# Disallow all relative imports.
285
284
ban-relative-imports = " all"
286
285
286
+ [tool .ruff .lint .pydocstyle ]
287
+ convention = " numpy"
288
+
289
+ [tool .ruff .format ]
290
+ docstring-code-format = true
291
+ preview = false
292
+
287
293
[tool .pytest .ini_options ]
288
294
addopts = [" --strict-config" , " --strict-markers" ]
289
295
filterwarnings = [
0 commit comments