From 659863a2cdf8f460051820e8e78325e072129e6a Mon Sep 17 00:00:00 2001 From: Jirka Date: Mon, 20 Feb 2023 20:32:29 +0100 Subject: [PATCH 1/2] update config --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 764e046..91eb207 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,12 +22,12 @@ repos: - id: check-docstring-first - id: detect-private-key - #- repo: https://github.com/asottile/pyupgrade - # rev: v2.23.1 - # hooks: - # - id: pyupgrade - # args: [--py36-plus] - # name: Upgrade code + - repo: https://github.com/asottile/pyupgrade + rev: v3.3.1 + hooks: + - id: pyupgrade + args: [--py38-plus] + name: Upgrade code - repo: https://github.com/asottile/yesqa rev: v1.4.0 @@ -35,13 +35,13 @@ repos: - id: yesqa - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.1.0 hooks: - id: black name: Format code - repo: https://github.com/PyCQA/isort - rev: 5.11.4 + rev: 5.12.0 hooks: - id: isort name: imports From 78b7640b91dd896accd0e58664ad6f28e1fd6111 Mon Sep 17 00:00:00 2001 From: Jirka Date: Mon, 20 Feb 2023 20:32:52 +0100 Subject: [PATCH 2/2] apply --- docs/source/conf.py | 23 +++++------ rising/_version.py | 18 ++++----- rising/interface.py | 2 +- rising/loading/loader.py | 8 ++-- rising/transforms/functional/intensity.py | 3 +- rising/transforms/functional/painting.py | 5 +-- rising/transforms/kernel.py | 8 ++-- tests/loading/test_collate.py | 2 +- tests/loading/test_loader.py | 2 +- tests/test_interface.py | 4 +- versioneer.py | 49 +++++++++++------------ 11 files changed, 59 insertions(+), 65 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 7c82059..fcfe9ff 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # @@ -298,7 +297,7 @@ nbsphinx_kernel_name = "python3" -github_path = r"https://github.com/%s/%s/blob/master/notebooks/{{ env.doc2path(env.docname, base=None) }}" % ( +github_path = r"https://github.com/{}/{}/blob/master/notebooks/{{{{ env.doc2path(env.docname, base=None) }}}}".format( github_user, github_repo, ) @@ -321,21 +320,21 @@ .. raw:: html