1
1
[project ]
2
- authors = [
3
- {
name =
" xarray Developers" ,
email =
" [email protected] " },
4
- ]
2
+ authors = [{
name =
" xarray Developers" ,
email =
" [email protected] " }]
5
3
classifiers = [
6
4
" Development Status :: 5 - Production/Stable" ,
7
5
" License :: OSI Approved :: Apache Software License" ,
@@ -22,11 +20,7 @@ name = "xarray"
22
20
readme = " README.md"
23
21
requires-python = " >=3.10"
24
22
25
- dependencies = [
26
- " numpy>=1.24" ,
27
- " packaging>=23.2" ,
28
- " pandas>=2.1" ,
29
- ]
23
+ dependencies = [" numpy>=1.24" , " packaging>=23.2" , " pandas>=2.1" ]
30
24
31
25
# We don't encode minimum requirements here (though if we can write a script to
32
26
# generate the text from `min_deps_check.py`, that's welcome...). We do add
@@ -70,6 +64,7 @@ types = [
70
64
" types-PyYAML" ,
71
65
" types-Pygments" ,
72
66
" types-colorama" ,
67
+ " types-decorator" ,
73
68
" types-defusedxml" ,
74
69
" types-docutils" ,
75
70
" types-networkx" ,
@@ -93,10 +88,7 @@ dask = "xarray.namedarray.daskmanager:DaskManager"
93
88
94
89
[build-system ]
95
90
build-backend = " setuptools.build_meta"
96
- requires = [
97
- " setuptools>=42" ,
98
- " setuptools-scm>=7" ,
99
- ]
91
+ requires = [" setuptools>=42" , " setuptools-scm>=7" ]
100
92
101
93
[tool .setuptools ]
102
94
packages = [" xarray" ]
@@ -120,10 +112,7 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
120
112
121
113
[tool .mypy ]
122
114
enable_error_code = [" ignore-without-code" , " redundant-self" , " redundant-expr" ]
123
- exclude = [
124
- ' build' ,
125
- ' xarray/util/generate_.*\.py' ,
126
- ]
115
+ exclude = [' build' , ' xarray/util/generate_.*\.py' ]
127
116
files = " xarray"
128
117
show_error_context = true
129
118
warn_redundant_casts = true
@@ -254,10 +243,7 @@ module = ["xarray.namedarray.*", "xarray.tests.test_namedarray"]
254
243
# reportMissingTypeStubs = false
255
244
256
245
[tool .ruff ]
257
- extend-exclude = [
258
- " doc" ,
259
- " _typed_ops.pyi" ,
260
- ]
246
+ extend-exclude = [" doc" , " _typed_ops.pyi" ]
261
247
262
248
[tool .ruff .lint ]
263
249
extend-select = [
@@ -383,3 +369,64 @@ test = "pytest"
383
369
ignore = [
384
370
" PP308" , # This option creates a large amount of log lines.
385
371
]
372
+
373
+ [tool .typos ]
374
+
375
+ [tool .typos .default ]
376
+ extend-ignore-identifiers-re = [
377
+ # Variable names
378
+ " nd_.*" ,
379
+ " .*_nd" ,
380
+ " ba_.*" ,
381
+ " .*_ba" ,
382
+ " ser_.*" ,
383
+ " .*_ser" ,
384
+ # Function/class names
385
+ " NDArray.*" ,
386
+ " .*NDArray.*" ,
387
+ ]
388
+
389
+ [tool .typos .default .extend-words ]
390
+ # NumPy function names
391
+ arange = " arange"
392
+
393
+ # Technical terms
394
+ nd = " nd"
395
+ nin = " nin"
396
+
397
+ # Variable names
398
+ ba = " ba"
399
+ ser = " ser"
400
+ fo = " fo"
401
+ iy = " iy"
402
+ vart = " vart"
403
+ ede = " ede"
404
+
405
+ # Organization/Institution names
406
+ Stichting = " Stichting"
407
+ Mathematisch = " Mathematisch"
408
+
409
+ # People's names
410
+ Soler = " Soler"
411
+ Bruning = " Bruning"
412
+ Tung = " Tung"
413
+ Claus = " Claus"
414
+ Celles = " Celles"
415
+ slowy = " slowy"
416
+ Commun = " Commun"
417
+
418
+ # Tests
419
+ Ome = " Ome"
420
+ SUR = " SUR"
421
+ Tio = " Tio"
422
+ Ono = " Ono"
423
+ abl = " abl"
424
+
425
+ # Technical terms
426
+ splitted = " splitted"
427
+ childs = " childs"
428
+ cutted = " cutted"
429
+ LOCA = " LOCA"
430
+
431
+ [tool .typos .type .jupyter ]
432
+ extend-ignore-re = [" \" id\" : \" .*\" " ]
0 commit comments