11[project ]
2- authors = [
3- {
name =
" xarray Developers" ,
email =
" [email protected] " },
4- ]
2+ authors = [{
name =
" xarray Developers" ,
email =
" [email protected] " }]
53classifiers = [
64 " Development Status :: 5 - Production/Stable" ,
75 " License :: OSI Approved :: Apache Software License" ,
@@ -22,11 +20,7 @@ name = "xarray"
2220readme = " README.md"
2321requires-python = " >=3.10"
2422
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" ]
3024
3125# We don't encode minimum requirements here (though if we can write a script to
3226# generate the text from `min_deps_check.py`, that's welcome...). We do add
@@ -70,6 +64,7 @@ types = [
7064 " types-PyYAML" ,
7165 " types-Pygments" ,
7266 " types-colorama" ,
67+ " types-decorator" ,
7368 " types-defusedxml" ,
7469 " types-docutils" ,
7570 " types-networkx" ,
@@ -93,10 +88,7 @@ dask = "xarray.namedarray.daskmanager:DaskManager"
9388
9489[build-system ]
9590build-backend = " setuptools.build_meta"
96- requires = [
97- " setuptools>=42" ,
98- " setuptools-scm>=7" ,
99- ]
91+ requires = [" setuptools>=42" , " setuptools-scm>=7" ]
10092
10193[tool .setuptools ]
10294packages = [" xarray" ]
@@ -120,10 +112,7 @@ exclude_lines = ["pragma: no cover", "if TYPE_CHECKING"]
120112
121113[tool .mypy ]
122114enable_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' ]
127116files = " xarray"
128117show_error_context = true
129118warn_redundant_casts = true
@@ -254,10 +243,7 @@ module = ["xarray.namedarray.*", "xarray.tests.test_namedarray"]
254243# reportMissingTypeStubs = false
255244
256245[tool .ruff ]
257- extend-exclude = [
258- " doc" ,
259- " _typed_ops.pyi" ,
260- ]
246+ extend-exclude = [" doc" , " _typed_ops.pyi" ]
261247
262248[tool .ruff .lint ]
263249extend-select = [
@@ -383,3 +369,64 @@ test = "pytest"
383369ignore = [
384370 " PP308" , # This option creates a large amount of log lines.
385371]
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