Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/ISSUE_TEMPLATE/bugreport.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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"
6 changes: 3 additions & 3 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/upstream-dev-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand All @@ -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

Expand Down
14 changes: 7 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
4 changes: 2 additions & 2 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ codecov:
comment: false

ignore:
- 'tests/*.py'
- 'setup.py'
- "tests/*.py"
- "setup.py"

coverage:
precision: 2
Expand Down
4 changes: 2 additions & 2 deletions readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion xpersist/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions xpersist/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading