From 91bb1d31e11a6f71eea1aa0d1ee0d547350e5e02 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:45:04 +0000 Subject: [PATCH 1/2] chore: pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 23.3.0 → 23.9.1](https://github.com/psf/black/compare/23.3.0...23.9.1) - [github.com/PyCQA/docformatter: v1.7.3 → v1.7.5](https://github.com/PyCQA/docformatter/compare/v1.7.3...v1.7.5) - [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](https://github.com/PyCQA/flake8/compare/6.0.0...6.1.0) - [github.com/asottile/blacken-docs: 1.14.0 → 1.16.0](https://github.com/asottile/blacken-docs/compare/1.14.0...1.16.0) --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d526602d..053ebce9 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 23.3.0 + rev: 23.9.1 hooks: - id: black language_version: python3 @@ -19,13 +19,13 @@ repos: hooks: - id: python-no-eval # A quick check for the eval() built-in function. - repo: https://github.com/PyCQA/docformatter - rev: v1.7.3 + rev: v1.7.5 hooks: - id: docformatter args: [--in-place] exclude: mkdocs_macros.py - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 # additional_dependencies: [flake8-docstrings, flake8-bugbear, flake8-spellcheck, flake8-import-order] @@ -34,7 +34,7 @@ repos: hooks: - id: nbstripout - repo: https://github.com/asottile/blacken-docs - rev: 1.14.0 + rev: 1.16.0 hooks: - id: blacken-docs - repo: https://github.com/nbQA-dev/nbQA From ebd9e15188035363833ed245cbed42ec12dd832e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 3 Oct 2023 12:45:13 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/ruptures/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ruptures/utils/utils.py b/src/ruptures/utils/utils.py index 356b736a..6db4fc7b 100644 --- a/src/ruptures/utils/utils.py +++ b/src/ruptures/utils/utils.py @@ -5,7 +5,7 @@ def pairwise(iterable): - """s -> (s0,s1), (s1,s2), (s2, s3), ...""" + """S -> (s0,s1), (s1,s2), (s2, s3), ...""" a, b = tee(iterable) next(b, None) return zip(a, b)