Skip to content

Commit

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

updates:
- [github.com/psf/black: 22.8.0 → 22.12.0](psf/black@22.8.0...22.12.0)
- [github.com/pre-commit/pre-commit-hooks: v4.3.0 → v4.4.0](pre-commit/pre-commit-hooks@v4.3.0...v4.4.0)
- [github.com/PyCQA/docformatter: v1.5.0 → v1.5.1](PyCQA/docformatter@v1.5.0...v1.5.1)
- [github.com/PyCQA/flake8: 5.0.4 → 6.0.0](PyCQA/flake8@5.0.4...6.0.0)
- [github.com/nbQA-dev/nbQA: 1.5.2 → 1.6.0](nbQA-dev/nbQA@1.5.2...1.6.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>
Co-authored-by: Olivier Boulant <olivier.boulant@proton.me>
  • Loading branch information
pre-commit-ci[bot] and oboulant committed Mar 29, 2023
1 parent b8518be commit 71c8e1e
Show file tree
Hide file tree
Showing 19 changed files with 5 additions and 24 deletions.
10 changes: 5 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
repos:
- repo: https://github.com/psf/black
rev: 22.8.0
rev: 22.12.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
rev: v4.4.0
hooks:
- id: trailing-whitespace # This hook trims trailing whitespace.
- id: check-docstring-first # Checks a common error of defining a docstring after code.
Expand All @@ -19,12 +19,12 @@ repos:
hooks:
- id: python-no-eval # A quick check for the eval() built-in function.
- repo: https://github.com/PyCQA/docformatter
rev: v1.5.0
rev: v1.5.1
hooks:
- id: docformatter
args: [--in-place]
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.0.0
hooks:
- id: flake8
# additional_dependencies: [flake8-docstrings, flake8-bugbear, flake8-spellcheck, flake8-import-order]
Expand All @@ -37,7 +37,7 @@ repos:
hooks:
- id: blacken-docs
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.5.2
rev: 1.6.0
hooks:
- id: nbqa-black
args: [--nbqa-mutate]
Expand Down
2 changes: 0 additions & 2 deletions src/ruptures/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class BaseEstimator(metaclass=abc.ABCMeta):

"""Base class for all change point detection estimators.
Notes:
Expand All @@ -34,7 +33,6 @@ def fit_predict(self, *args, **kwargs):


class BaseCost(object, metaclass=abc.ABCMeta):

"""Base class for all segment cost classes.
Notes:
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costautoregressive.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class CostAR(BaseCost):

r"""Least-squares estimate for changes in autoregressive coefficients."""

model = "ar"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costclinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class CostCLinear(BaseCost):

r"""Piecewise linear approximation with a continuity constraint."""

model = "clinear"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costcosine.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class CostCosine(BaseCost):

r"""Kernel change point detection with the cosine similarity."""

model = "cosine"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costl1.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class CostL1(BaseCost):

r"""Least absolute deviation."""

model = "l1"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costl2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@


class CostL2(BaseCost):

r"""Least squared deviation."""

model = "l2"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costlinear.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


class CostLinear(BaseCost):

r"""Least-square estimate for linear changes."""

model = "linear"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costml.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class CostMl(BaseCost):

r"""Mahalanobis-type cost function."""

model = "mahalanobis"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costnormal.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class CostNormal(BaseCost):

"""Gaussian process change."""

model = "normal"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/costs/costrbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@


class CostRbf(BaseCost):

r"""Kernel cost function (rbf kernel)."""

model = "rbf"
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/detection/binseg.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@


class Binseg(BaseEstimator):

"""Binary segmentation."""

def __init__(self, model="l2", custom_cost=None, min_size=2, jump=5, params=None):
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/detection/bottomup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@


class BottomUp(BaseEstimator):

"""Bottom-up segmentation."""

def __init__(self, model="l2", custom_cost=None, min_size=2, jump=5, params=None):
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/detection/dynp.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Dynp(BaseEstimator):

"""Find optimal change points using dynamic programming.
Given a segment model, it computes the best partition for which the
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/detection/kernelcpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@


class KernelCPD(BaseEstimator):

"""Find optimal change points (using dynamic programming or pelt) for the
special case where the cost function derives from a kernel function.
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/detection/pelt.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Pelt(BaseEstimator):

"""Penalized change point detection.
For a given model and penalty level, computes the segmentation which
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/detection/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@


class Window(BaseEstimator):

"""Window sliding method."""

def __init__(
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/metrics/sanity_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@


class BadPartitions(Exception):

"""Exception raised when the partition is bad."""

pass
Expand Down
1 change: 0 additions & 1 deletion src/ruptures/utils/bnode.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

@functools.total_ordering
class Bnode:

"""Binary node.
In binary segmentation, each segment [start, end) is a binary node.
Expand Down

0 comments on commit 71c8e1e

Please sign in to comment.