Skip to content

Commit

Permalink
chore: pre-commit autoupdate (#308)
Browse files Browse the repository at this point in the history
* chore: pre-commit autoupdate

updates:
- [github.com/psf/black: 23.3.0 → 23.9.1](psf/black@23.3.0...23.9.1)
- [github.com/PyCQA/docformatter: v1.7.3 → v1.7.5](PyCQA/docformatter@v1.7.3...v1.7.5)
- [github.com/PyCQA/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)
- [github.com/asottile/blacken-docs: 1.14.0 → 1.16.0](adamchainz/blacken-docs@1.14.0...1.16.0)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Oct 5, 2023
1 parent 43af39f commit 03ff932
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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]
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/ruptures/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 03ff932

Please sign in to comment.