|
1 | 1 | [build-system]
|
2 |
| -requires = ["setuptools>=45", "wheel", "setuptools_scm>=6.2"] |
| 2 | + requires = ["setuptools>=45", "setuptools_scm>=6.2", "wheel"] |
3 | 3 |
|
4 | 4 | [project]
|
5 |
| -name = "intake-esm" |
6 |
| -description = "An intake plugin for parsing an Earth System Model (ESM) catalog and loading netCDF files and/or Zarr stores into Xarray datasets." |
7 |
| -readme = "README.md" |
8 |
| -license = {text="Apache Software License 2.0"} |
9 |
| -requires-python = ">=3.10" |
10 |
| -maintainers = [ |
11 |
| - { name = "NCAR XDev Team", email = "xdev@ucar.edu" }, |
12 |
| -] |
13 |
| -keywords = [ |
14 |
| - "catalog", |
15 |
| - "intake", |
16 |
| - "xarray", |
17 |
| -] |
18 |
| -classifiers = [ |
19 |
| - "Development Status :: 4 - Beta", |
20 |
| - "Intended Audience :: Science/Research", |
21 |
| - "License :: OSI Approved :: Apache Software License", |
22 |
| - "Operating System :: OS Independent", |
23 |
| - "Programming Language :: Python", |
24 |
| - "Programming Language :: Python :: 3", |
25 |
| - "Programming Language :: Python :: 3.10", |
26 |
| - "Programming Language :: Python :: 3.11", |
27 |
| - "Programming Language :: Python :: 3.12", |
28 |
| - "Topic :: Scientific/Engineering", |
29 |
| -] |
30 |
| - |
31 |
| -dynamic = ["version", "dependencies"] |
| 5 | + classifiers = [ |
| 6 | + "Development Status :: 4 - Beta", |
| 7 | + "Intended Audience :: Science/Research", |
| 8 | + "License :: OSI Approved :: Apache Software License", |
| 9 | + "Operating System :: OS Independent", |
| 10 | + "Programming Language :: Python :: 3", |
| 11 | + "Programming Language :: Python :: 3.10", |
| 12 | + "Programming Language :: Python :: 3.11", |
| 13 | + "Programming Language :: Python :: 3.12", |
| 14 | + "Programming Language :: Python", |
| 15 | + "Topic :: Scientific/Engineering", |
| 16 | + ] |
| 17 | + description = "An intake plugin for parsing an Earth System Model (ESM) catalog and loading netCDF files and/or Zarr stores into Xarray datasets." |
| 18 | + keywords = ["catalog", "intake", "xarray"] |
| 19 | + license = { text = "Apache Software License 2.0" } |
| 20 | + maintainers = [{ name = "NCAR XDev Team", email = "xdev@ucar.edu" }] |
| 21 | + name = "intake-esm" |
| 22 | + readme = "README.md" |
| 23 | + requires-python = ">=3.10" |
| 24 | + |
| 25 | + dynamic = ["dependencies", "version"] |
32 | 26 |
|
33 | 27 | [tool.setuptools.dynamic]
|
34 | 28 |
|
35 |
| -dependencies = { file = ["requirements.txt"] } |
36 |
| -optional-dependencies = { dev = { file = ["requirements-dev.txt"] } } |
| 29 | + dependencies = { file = ["requirements.txt"] } |
| 30 | + optional-dependencies = { dev = { file = ["requirements-dev.txt"] } } |
37 | 31 |
|
38 | 32 | [project.entry-points."intake.drivers"]
|
39 |
| -esm_datasource = "intake_esm.source:ESMDataSource" |
40 |
| -esm_datastore = "intake_esm.core:esm_datastore" |
| 33 | + esm_datasource = "intake_esm.source:ESMDataSource" |
| 34 | + esm_datastore = "intake_esm.core:esm_datastore" |
41 | 35 |
|
42 | 36 | [project.urls]
|
43 |
| -Documentation = "https://intake-esm.readthedocs.io" |
44 |
| -Homepage = "https://intake-esm.readthedocs.io" |
45 |
| -Source = "https://github.com/intake/intake-esm" |
46 |
| -Tracker = "https://github.com/intake/intake-esm/issues" |
47 |
| - |
| 37 | + Documentation = "https://intake-esm.readthedocs.io" |
| 38 | + Homepage = "https://intake-esm.readthedocs.io" |
| 39 | + Source = "https://github.com/intake/intake-esm" |
| 40 | + Tracker = "https://github.com/intake/intake-esm/issues" |
48 | 41 |
|
49 | 42 | [tool.setuptools.packages.find]
|
50 |
| -include = ["intake_esm*"] |
| 43 | + include = ["intake_esm*"] |
51 | 44 |
|
52 | 45 | [tool.setuptools.package-data]
|
53 |
| -intake_esm = ["py.typed"] |
54 |
| - |
55 |
| - |
| 46 | + intake_esm = ["py.typed"] |
56 | 47 |
|
57 | 48 | [tool.setuptools_scm]
|
58 |
| -version_scheme = "post-release" |
59 |
| -local_scheme = "node-and-date" |
60 |
| -fallback_version = "999" |
61 |
| -write_to = "intake_esm/_version.py" |
62 |
| -write_to_template = '__version__ = "{version}"' |
63 |
| - |
64 |
| - |
| 49 | + fallback_version = "999" |
| 50 | + local_scheme = "node-and-date" |
| 51 | + version_scheme = "post-release" |
| 52 | + write_to = "intake_esm/_version.py" |
| 53 | + write_to_template = '__version__ = "{version}"' |
65 | 54 |
|
66 | 55 | [tool.ruff]
|
67 |
| -line-length = 100 |
68 |
| -target-version = "py310" |
69 |
| -extend-include = ["*.ipynb"] |
70 |
| - |
71 |
| - |
72 |
| -builtins = ["ellipsis"] |
73 |
| -# Exclude a variety of commonly ignored directories. |
74 |
| -exclude = [ |
75 |
| - ".bzr", |
76 |
| - ".direnv", |
77 |
| - ".eggs", |
78 |
| - ".git", |
79 |
| - ".git-rewrite", |
80 |
| - ".hg", |
81 |
| - ".ipynb_checkpoints", |
82 |
| - ".mypy_cache", |
83 |
| - ".nox", |
84 |
| - ".pants.d", |
85 |
| - ".pyenv", |
86 |
| - ".pytest_cache", |
87 |
| - ".pytype", |
88 |
| - ".ruff_cache", |
89 |
| - ".svn", |
90 |
| - ".tox", |
91 |
| - ".venv", |
92 |
| - ".vscode", |
93 |
| - "__pypackages__", |
94 |
| - "_build", |
95 |
| - "buck-out", |
96 |
| - "build", |
97 |
| - "dist", |
98 |
| - "node_modules", |
99 |
| - "site-packages", |
100 |
| - "venv", |
101 |
| -] |
| 56 | + extend-include = ["*.ipynb"] |
| 57 | + line-length = 100 |
| 58 | + target-version = "py310" |
| 59 | + |
| 60 | + builtins = ["ellipsis"] |
| 61 | + # Exclude a variety of commonly ignored directories. |
| 62 | + exclude = [ |
| 63 | + ".bzr", |
| 64 | + ".direnv", |
| 65 | + ".eggs", |
| 66 | + ".git", |
| 67 | + ".git-rewrite", |
| 68 | + ".hg", |
| 69 | + ".ipynb_checkpoints", |
| 70 | + ".mypy_cache", |
| 71 | + ".nox", |
| 72 | + ".pants.d", |
| 73 | + ".pyenv", |
| 74 | + ".pytest_cache", |
| 75 | + ".pytype", |
| 76 | + ".ruff_cache", |
| 77 | + ".svn", |
| 78 | + ".tox", |
| 79 | + ".venv", |
| 80 | + ".vscode", |
| 81 | + "__pypackages__", |
| 82 | + "_build", |
| 83 | + "buck-out", |
| 84 | + "build", |
| 85 | + "dist", |
| 86 | + "node_modules", |
| 87 | + "site-packages", |
| 88 | + "venv", |
| 89 | + ] |
102 | 90 | [tool.ruff.lint]
|
103 |
| -per-file-ignores = {} |
104 |
| -ignore = [ |
105 |
| - "E721", # Comparing types instead of isinstance |
106 |
| - "E741", # Ambiguous variable names |
107 |
| - "E501", # Conflicts with ruff format |
108 |
| -] |
109 |
| -select = [ |
110 |
| - # Pyflakes |
111 |
| - "F", |
112 |
| - # Pycodestyle |
113 |
| - "E", |
114 |
| - "W", |
115 |
| - # isort |
116 |
| - "I", |
117 |
| - # Pyupgrade |
118 |
| - "UP", |
119 |
| -] |
120 |
| - |
| 91 | + ignore = [ |
| 92 | + "E501", # Conflicts with ruff format |
| 93 | + "E721", # Comparing types instead of isinstance |
| 94 | + "E741", # Ambiguous variable names |
| 95 | + ] |
| 96 | + per-file-ignores = {} |
| 97 | + select = [ |
| 98 | + # Pyflakes |
| 99 | + "F", |
| 100 | + # Pycodestyle |
| 101 | + "E", |
| 102 | + "W", |
| 103 | + # isort |
| 104 | + "I", |
| 105 | + # Pyupgrade |
| 106 | + "UP", |
| 107 | + ] |
121 | 108 |
|
122 | 109 | [tool.ruff.lint.mccabe]
|
123 |
| -max-complexity = 18 |
| 110 | + max-complexity = 18 |
124 | 111 |
|
125 | 112 | [tool.ruff.lint.isort]
|
126 |
| -known-first-party = ["intake_esm"] |
127 |
| -combine-as-imports = true |
| 113 | + combine-as-imports = true |
| 114 | + known-first-party = ["intake_esm"] |
128 | 115 |
|
129 | 116 | [tool.ruff.format]
|
130 |
| -quote-style = "single" |
131 |
| -docstring-code-format = true |
| 117 | + docstring-code-format = true |
| 118 | + quote-style = "single" |
132 | 119 |
|
133 | 120 | [tool.ruff.lint.pydocstyle]
|
134 |
| -convention = "numpy" |
| 121 | + convention = "numpy" |
135 | 122 |
|
136 | 123 | [tool.pytest.ini_options]
|
137 |
| -console_output_style = "count" |
138 |
| -addopts = "--cov=./ --cov-report=xml --verbose" |
139 |
| -markers = "network: tests requiring a network connection" |
| 124 | + addopts = "--cov=./ --cov-report=xml --verbose" |
| 125 | + console_output_style = "count" |
| 126 | + markers = "network: tests requiring a network connection" |
0 commit comments