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 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)