Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#366)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/tox-dev/pyproject-fmt: 1.8.0 → 2.1.3](tox-dev/pyproject-fmt@1.8.0...2.1.3)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update pyproject.toml

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Remove seed-isort-config (was deprecated since isort 5

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Pascal Bourgault <bourgault.pascal@ouranos.ca>
  • Loading branch information
pre-commit-ci[bot] and aulemahal committed Jun 26, 2024
1 parent fdcca9c commit ad056a3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 30 deletions.
7 changes: 1 addition & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,6 @@ repos:
rev: 7.0.0
hooks:
- id: flake8

- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
hooks:
- id: seed-isort-config
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
hooks:
Expand All @@ -54,7 +49,7 @@ repos:
]

- repo: https://github.com/tox-dev/pyproject-fmt
rev: 1.8.0
rev: 2.1.3
hooks:
- id: pyproject-fmt

Expand Down
66 changes: 42 additions & 24 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,49 +2,55 @@
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=41.2",
"setuptools_scm",
"setuptools-scm",
"wheel",
]

[project]
name = "xesmf"
description = "Universal Regridder for Geospatial Data"
license = {text = "MIT"}
license = { text = "MIT" }
authors = [
{name = "Jiawei Zhuang", email = "jiaweizhuang@g.harvard.edu"},
{ name = "Jiawei Zhuang", email = "jiaweizhuang@g.harvard.edu" },
]
requires-python = ">=3.8"
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
'Topic :: Scientific/Engineering',
"Topic :: Scientific/Engineering",
]
dynamic = [
"dependencies",
"readme",
"version",
]
[project.urls]
documentation = "https://xesmf.readthedocs.io/en/latest/"
homepage = "https://github.com/pangeo-data/xESMF"
repository = "https://github.com/pangeo-data/xESMF"
urls.documentation = "https://xesmf.readthedocs.io/en/latest/"
urls.homepage = "https://github.com/pangeo-data/xESMF"
urls.repository = "https://github.com/pangeo-data/xESMF"

[tool.setuptools]
packages = ["xesmf", "xesmf.tests"]
license-files = ["LICENSE"]
packages = [
"xesmf",
"xesmf.tests",
]
license-files = [
"LICENSE",
]

[tool.setuptools.dynamic]
dependencies = {file = ["requirements.txt"]}
readme = {file = "README.rst", content-type = "text/x-rst"}
dependencies = { file = [
"requirements.txt",
] }
readme = { file = "README.rst", content-type = "text/x-rst" }

[tool.setuptools_scm]
write_to = "xesmf/_version.py"
Expand All @@ -53,18 +59,30 @@ tag_regex = "^(?P<prefix>v)?(?P<version>[^\\+]+)(?P<suffix>.*)?$"

[tool.black]
line-length = 100
target-version = ['py310']
target-version = [
'py310',
]
skip-string-normalization = true

[tool.isort]
known_first_party = "xesmf"
known_third_party = ["cf_xarray", "cftime", "dask", "numba", "numpy", "pytest", "shapely", "sparse", "xarray"]
known_third_party = [
"cf_xarray",
"cftime",
"dask",
"numba",
"numpy",
"pytest",
"shapely",
"sparse",
"xarray",
]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
line_length = 100
skip = [
"setup.py",
"doc/conf.py",
"setup.py",
"doc/conf.py",
]
1 change: 1 addition & 0 deletions xesmf/tests/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import esmpy as ESMF
except ImportError:
import ESMF

import numpy as np
import pytest
import xarray as xr
Expand Down

0 comments on commit ad056a3

Please sign in to comment.