From 25379224c6c466023e9fbe0946d08e1cd21b9ced Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:19:22 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pycqa/isort: 5.12.0 → 5.13.2](https://github.com/pycqa/isort/compare/5.12.0...5.13.2) - https://github.com/python/black → https://github.com/psf/black - [github.com/psf/black: 23.1.0 → 24.10.0](https://github.com/psf/black/compare/23.1.0...24.10.0) - [github.com/pycqa/flake8: 3.7.9 → 7.1.1](https://github.com/pycqa/flake8/compare/3.7.9...7.1.1) - [github.com/pre-commit/mirrors-mypy: v1.1.1 → v1.13.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.1.1...v1.13.0) - [github.com/tox-dev/pyproject-fmt: 0.9.2 → v2.5.0](https://github.com/tox-dev/pyproject-fmt/compare/0.9.2...v2.5.0) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 33bbf40..914a7b7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,24 +1,24 @@ repos: - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort args: ["--profile", "black", "--filter-files"] -- repo: https://github.com/python/black - rev: 23.1.0 +- repo: https://github.com/psf/black + rev: 24.10.0 hooks: - id: black language_version: python3 - repo: https://github.com/pycqa/flake8 - rev: 3.7.9 + rev: 7.1.1 hooks: - id: flake8 language_version: python3 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v1.1.1 + rev: v1.13.0 hooks: - id: mypy - repo: https://github.com/tox-dev/pyproject-fmt - rev: "0.9.2" + rev: "v2.5.0" hooks: - id: pyproject-fmt From e84089e0e33f8f5bfb2d58b58fa65db91b576fc8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:20:01 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pyproject.toml | 41 ++++++++++++++++++++++++----------------- rechunker/__init__.py | 1 + rechunker/algorithm.py | 1 + rechunker/api.py | 1 + rechunker/types.py | 1 + 5 files changed, 28 insertions(+), 17 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8c34d49..9be870d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ build-backend = "setuptools.build_meta" requires = [ "setuptools>=42", - "setuptools_scm[toml]>=3.4", + "setuptools-scm[toml]>=3.4", "wheel", ] @@ -10,33 +10,41 @@ requires = [ name = "rechunker" description = "A library for rechunking arrays" readme = "README.md" -license = {file = "LICENSE"} +license = { file = "LICENSE" } authors = [ - {name = "Pangeo developers", email = "ryan.abernathey@gmail.com"}, + { name = "Pangeo developers", email = "ryan.abernathey@gmail.com" }, ] requires-python = ">=3.8" +classifiers = [ + "Programming Language :: Python :: 3 :: Only", + "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", + "Programming Language :: Python :: 3.13", +] dynamic = [ "version", ] dependencies = [ "dask[array,diagnostics]", - "mypy_extensions", + "mypy-extensions", "zarr>=2.11", ] -[project.optional-dependencies] -complete = [ - "apache_beam", +optional-dependencies.complete = [ + "apache-beam", "fsspec", "prefect<2", "pyyaml", "xarray>=2022.3", ] -dev = [ +optional-dependencies.dev = [ "black", "codecov", "flake8", "hypothesis", - "IPython", + "ipython", "mypy==0.782", "nbsphinx", "numpydoc", @@ -46,25 +54,24 @@ dev = [ "sphinx-pangeo-theme", "sphinxcontrib-srclinks", ] -docs = [ - "IPython", +optional-dependencies.docs = [ + "ipython", "nbsphinx", "numpydoc", "sphinx", "sphinx-pangeo-theme", "sphinxcontrib-srclinks", ] -test = [ +optional-dependencies.test = [ "hypothesis", "pytest", ] -[project.urls] -documentation = "https://rechunker.readthedocs.io" -homepage = "https://pypi.org/project/rechunker/" -repository = "https://github.com/pangeo-data/rechunker" +urls.documentation = "https://rechunker.readthedocs.io" +urls.homepage = "https://pypi.org/project/rechunker/" +urls.repository = "https://github.com/pangeo-data/rechunker" [tool.setuptools] -packages = ["rechunker"] +packages = [ "rechunker" ] [tool.setuptools_scm] write_to = "rechunker/_version.py" diff --git a/rechunker/__init__.py b/rechunker/__init__.py index a006adb..dbc5c71 100644 --- a/rechunker/__init__.py +++ b/rechunker/__init__.py @@ -1,4 +1,5 @@ """Top-level package for Zarr Rechunker.""" + try: from ._version import __version__ # type: ignore except ImportError: diff --git a/rechunker/algorithm.py b/rechunker/algorithm.py index ae2c327..70f8d9f 100644 --- a/rechunker/algorithm.py +++ b/rechunker/algorithm.py @@ -1,4 +1,5 @@ """Core rechunking algorithm stuff.""" + import logging import warnings from math import ceil, floor, prod diff --git a/rechunker/api.py b/rechunker/api.py index 0b3ced7..a0a350b 100644 --- a/rechunker/api.py +++ b/rechunker/api.py @@ -1,4 +1,5 @@ """User-facing functions.""" + import html import textwrap from collections import defaultdict diff --git a/rechunker/types.py b/rechunker/types.py index e1ef210..0fdaa1c 100644 --- a/rechunker/types.py +++ b/rechunker/types.py @@ -1,4 +1,5 @@ """Types definitions used by executors.""" + from dataclasses import dataclass from typing import ( Any,