-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Pyproject pre-commit hooks (#9840)
* add taplo pre-commit hook * move TODO tamasfe/taplo#706 * add validate-pyproject pre-commit hook
- Loading branch information
1 parent
66e13a2
commit 99ee8c6
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
authors = [ | ||
{name = "xarray Developers", email = "[email protected]"}, | ||
{ name = "xarray Developers", email = "[email protected]" }, | ||
] | ||
classifiers = [ | ||
"Development Status :: 5 - Production/Stable", | ||
|
@@ -16,7 +16,7 @@ classifiers = [ | |
] | ||
description = "N-D labeled arrays and datasets in Python" | ||
dynamic = ["version"] | ||
license = {text = "Apache-2.0"} | ||
license = { text = "Apache-2.0" } | ||
name = "xarray" | ||
readme = "README.md" | ||
requires-python = ">=3.10" | ||
|
@@ -50,7 +50,16 @@ dev = [ | |
"sphinx_autosummary_accessors", | ||
"xarray[complete]", | ||
] | ||
io = ["netCDF4", "h5netcdf", "scipy", 'pydap; python_version<"3.10"', "zarr", "fsspec", "cftime", "pooch"] | ||
io = [ | ||
"netCDF4", | ||
"h5netcdf", | ||
"scipy", | ||
'pydap; python_version<"3.10"', | ||
"zarr", | ||
"fsspec", | ||
"cftime", | ||
"pooch", | ||
] | ||
etc = ["sparse"] | ||
parallel = ["dask[complete]"] | ||
viz = ["cartopy", "matplotlib", "nc-time-axis", "seaborn"] | ||
|
@@ -249,7 +258,7 @@ extend-select = [ | |
"RUF", | ||
] | ||
extend-safe-fixes = [ | ||
"TID252", # absolute imports | ||
"TID252", # absolute imports | ||
] | ||
ignore = [ | ||
"E402", # module level import not at top of file | ||
|
@@ -327,7 +336,9 @@ filterwarnings = [ | |
"default:the `pandas.MultiIndex` object:FutureWarning:xarray.tests.test_variable", | ||
"default:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning", | ||
"default:Duplicate dimension names present:UserWarning:xarray.namedarray.core", | ||
"default:::xarray.tests.test_strategies", # TODO: remove once we know how to deal with a changed signature in protocols | ||
|
||
# TODO: remove once we know how to deal with a changed signature in protocols | ||
"default:::xarray.tests.test_strategies", | ||
] | ||
|
||
log_cli_level = "INFO" | ||
|