From a2dff7b82925ea12fa60336b52cf279e9e4b62c1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 21:47:48 +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/pre-commit/pre-commit-hooks: v4.3.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v6.0.0) - https://github.com/psf/black → https://github.com/psf/black-pre-commit-mirror - [github.com/psf/black-pre-commit-mirror: 22.8.0 → 25.11.0](https://github.com/psf/black-pre-commit-mirror/compare/22.8.0...25.11.0) - [github.com/keewis/blackdoc: v0.3.6 → v0.4.6](https://github.com/keewis/blackdoc/compare/v0.3.6...v0.4.6) - [github.com/PyCQA/flake8: 5.0.4 → 7.3.0](https://github.com/PyCQA/flake8/compare/5.0.4...7.3.0) - [github.com/PyCQA/isort: 5.10.1 → 7.0.0](https://github.com/PyCQA/isort/compare/5.10.1...7.0.0) - [github.com/pre-commit/mirrors-prettier: v3.0.0-alpha.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.0.0-alpha.0...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 303f0a3..7bdb256 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,7 +3,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -12,27 +12,27 @@ repos: - id: check-yaml - id: double-quote-string-fixer - - repo: https://github.com/psf/black - rev: 22.8.0 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.11.0 hooks: - id: black-jupyter - repo: https://github.com/keewis/blackdoc - rev: v0.3.6 + rev: v0.4.6 hooks: - id: blackdoc - repo: https://github.com/PyCQA/flake8 - rev: 5.0.4 + rev: 7.3.0 hooks: - id: flake8 - repo: https://github.com/PyCQA/isort - rev: 5.10.1 + rev: 7.0.0 hooks: - id: isort - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.0.0-alpha.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier From 1c4b0f2295b1ef22bfbd798970f5aa354230954c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 21:48:27 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/ISSUE_TEMPLATE/bugreport.yml | 12 ++++++------ .github/dependabot.yaml | 6 +++--- .github/workflows/ci.yaml | 6 +++--- .github/workflows/upstream-dev-ci.yaml | 6 +++--- codecov.yml | 4 ++-- readthedocs.yml | 4 ++-- xpersist/__init__.py | 2 +- xpersist/registry.py | 4 +--- 8 files changed, 21 insertions(+), 23 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bugreport.yml b/.github/ISSUE_TEMPLATE/bugreport.yml index af61939..fb4015e 100644 --- a/.github/ISSUE_TEMPLATE/bugreport.yml +++ b/.github/ISSUE_TEMPLATE/bugreport.yml @@ -1,6 +1,6 @@ name: Bug Report description: File a bug report to help us improve -title: '[Bug]: ' +title: "[Bug]: " labels: [bug, triage] assignees: [] body: @@ -16,7 +16,7 @@ body: Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen. placeholder: Tell us what you see! - value: 'A bug happened!' + value: "A bug happened!" validations: required: true - type: textarea @@ -50,7 +50,7 @@ body: label: Which Python version are you using? multiple: true options: - - '3.7' - - '3.8' - - '3.9' - - '3.10' + - "3.7" + - "3.8" + - "3.9" + - "3.10" diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index fe0bcda..838c16e 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -4,8 +4,8 @@ updates: # directory: '/' # schedule: # interval: 'weekly' - - package-ecosystem: 'github-actions' - directory: '/' + - package-ecosystem: "github-actions" + directory: "/" schedule: # Check for updates once a week - interval: 'weekly' + interval: "weekly" diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4b83952..b78f6ae 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -3,7 +3,7 @@ on: push: pull_request: schedule: - - cron: '0 0 * * *' # Daily “At 00:00” + - cron: "0 0 * * *" # Daily “At 00:00” workflow_dispatch: # allows you to trigger manually concurrency: @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.7', '3.8', '3.9', '3.10'] + python-version: ["3.7", "3.8", "3.9", "3.10"] steps: - uses: actions/checkout@v3 - uses: conda-incubator/setup-miniconda@v2 @@ -31,7 +31,7 @@ jobs: activate-environment: xpersist-dev auto-update-conda: false python-version: ${{ matrix.python-version }} - mamba-version: '*' + mamba-version: "*" use-mamba: true miniforge-variant: Mambaforge environment-file: ci/environment.yml diff --git a/.github/workflows/upstream-dev-ci.yaml b/.github/workflows/upstream-dev-ci.yaml index 23c0850..cf01302 100644 --- a/.github/workflows/upstream-dev-ci.yaml +++ b/.github/workflows/upstream-dev-ci.yaml @@ -2,7 +2,7 @@ name: Upstream CI on: push: schedule: - - cron: '0 0 * * *' # Daily “At 00:00” UTC + - cron: "0 0 * * *" # Daily “At 00:00” UTC workflow_dispatch: # allows you to trigger the workflow run manually concurrency: @@ -19,7 +19,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ['3.10'] + python-version: ["3.10"] steps: - uses: actions/checkout@v3 - uses: conda-incubator/setup-miniconda@v2 @@ -31,7 +31,7 @@ jobs: auto-update-conda: false python-version: ${{ matrix.python-version }} environment-file: ci/upstream-dev-environment.yml - mamba-version: '*' + mamba-version: "*" use-mamba: true miniforge-variant: Mambaforge diff --git a/codecov.yml b/codecov.yml index aa1da5f..3961baf 100644 --- a/codecov.yml +++ b/codecov.yml @@ -5,8 +5,8 @@ codecov: comment: false ignore: - - 'tests/*.py' - - 'setup.py' + - "tests/*.py" + - "setup.py" coverage: precision: 2 diff --git a/readthedocs.yml b/readthedocs.yml index 68e5895..1aed175 100644 --- a/readthedocs.yml +++ b/readthedocs.yml @@ -2,6 +2,6 @@ version: 2 conda: environment: ci/environment-docs.yml build: - os: 'ubuntu-20.04' + os: "ubuntu-20.04" tools: - python: 'mambaforge-4.10' + python: "mambaforge-4.10" diff --git a/xpersist/__init__.py b/xpersist/__init__.py index 2b48d3a..58d4dcc 100644 --- a/xpersist/__init__.py +++ b/xpersist/__init__.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # flake8: noqa -""" Top-level module for xpersist. """ +"""Top-level module for xpersist.""" from pkg_resources import DistributionNotFound, get_distribution from .cache import CacheStore diff --git a/xpersist/registry.py b/xpersist/registry.py index 663a85e..ef2346b 100644 --- a/xpersist/registry.py +++ b/xpersist/registry.py @@ -15,12 +15,10 @@ class Decorator(Protocol): - def __call__(self, name: str) -> typing.Callable[[_DIn], _DIn]: - ... + def __call__(self, name: str) -> typing.Callable[[_DIn], _DIn]: ... class registry: - """xpersist's global registry entrypoint. This is used to register serializers and other components that are used by xpersist.