From 3d7ec0eeebd9583a3bed204a199501c1b0fcb953 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 7 Apr 2021 14:50:56 +0200 Subject: [PATCH 1/4] chore: pre-commit autoupdate (#144) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a823fd64..021a6f99 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: hooks: - id: docformatter args: [--in-place] -- repo: https://gitlab.com/pycqa/flake8 +- repo: https://github.com/PyCQA/flake8 rev: 3.9.0 hooks: - id: flake8 @@ -37,7 +37,7 @@ repos: hooks: - id: blacken-docs - repo: https://github.com/nbQA-dev/nbQA - rev: 0.5.9 + rev: 0.6.0 hooks: - id: nbqa-black args: [--nbqa-mutate] From 2144831d88f6d3cb9eac5dd5b265f3cdfa3ba1ea Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 19 Apr 2021 21:31:38 +0200 Subject: [PATCH 2/4] chore: pre-commit autoupdate (#149) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [pre-commit.ci] pre-commit autoupdate updates: - [github.com/PyCQA/flake8: 3.9.0 → 3.9.1](https://github.com/PyCQA/flake8/compare/3.9.0...3.9.1) - [github.com/nbQA-dev/nbQA: 0.6.0 → 0.7.0](https://github.com/nbQA-dev/nbQA/compare/0.6.0...0.7.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> --- .pre-commit-config.yaml | 4 ++-- docs/examples/kernel-cpd-performance-comparison.ipynb | 1 + docs/examples/music-segmentation.ipynb | 5 +++-- docs/getting-started/basic-usage.ipynb | 1 + 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 021a6f99..82cc5b09 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: - id: docformatter args: [--in-place] - repo: https://github.com/PyCQA/flake8 - rev: 3.9.0 + rev: 3.9.1 hooks: - id: flake8 # additional_dependencies: [flake8-docstrings, flake8-bugbear, flake8-spellcheck, flake8-import-order] @@ -37,7 +37,7 @@ repos: hooks: - id: blacken-docs - repo: https://github.com/nbQA-dev/nbQA - rev: 0.6.0 + rev: 0.7.0 hooks: - id: nbqa-black args: [--nbqa-mutate] diff --git a/docs/examples/kernel-cpd-performance-comparison.ipynb b/docs/examples/kernel-cpd-performance-comparison.ipynb index 109345f4..94034ba0 100644 --- a/docs/examples/kernel-cpd-performance-comparison.ipynb +++ b/docs/examples/kernel-cpd-performance-comparison.ipynb @@ -50,6 +50,7 @@ "import time # for execution time comparison\n", "\n", "import matplotlib.pyplot as plt # for display purposes\n", + "\n", "import ruptures as rpt # our package\n", "from ruptures.metrics import hausdorff\n", "\n", diff --git a/docs/examples/music-segmentation.ipynb b/docs/examples/music-segmentation.ipynb index 9eb54d8a..bbbbc07c 100644 --- a/docs/examples/music-segmentation.ipynb +++ b/docs/examples/music-segmentation.ipynb @@ -38,8 +38,9 @@ "import librosa.display\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", - "import ruptures as rpt # our package\n", - "from IPython.display import Audio, display" + "from IPython.display import Audio, display\n", + "\n", + "import ruptures as rpt # our package" ] }, { diff --git a/docs/getting-started/basic-usage.ipynb b/docs/getting-started/basic-usage.ipynb index 06f24dd3..c37cdb0b 100644 --- a/docs/getting-started/basic-usage.ipynb +++ b/docs/getting-started/basic-usage.ipynb @@ -21,6 +21,7 @@ "outputs": [], "source": [ "import matplotlib.pyplot as plt # for display purposes\n", + "\n", "import ruptures as rpt # our package" ] }, From ed471005065c1b0204ee5240c54706624d921289 Mon Sep 17 00:00:00 2001 From: Olivier Boulant Date: Mon, 3 May 2021 09:42:13 +0200 Subject: [PATCH 3/4] chore: set manually a working version of pip for install (#153) --- .github/workflows/run-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-test.yml b/.github/workflows/run-test.yml index c1b26723..6ac998aa 100644 --- a/.github/workflows/run-test.yml +++ b/.github/workflows/run-test.yml @@ -27,7 +27,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install ruptures run: | - python -m pip install --upgrade pip + python -m pip install pip==21.0.1 python -m pip install .[test] - name: Test with pytest run: | From 4ddef57de263a61fd4e62de781a1e138625f0b0d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 May 2021 10:30:45 +0200 Subject: [PATCH 4/4] [pre-commit.ci] pre-commit autoupdate (#151) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/psf/black: 20.8b1 → 21.4b0](https://github.com/psf/black/compare/20.8b1...21.4b0) - [github.com/kynan/nbstripout: 0.3.9 → 0.4.0](https://github.com/kynan/nbstripout/compare/0.3.9...0.4.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Olivier Boulant --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 82cc5b09..ef8a97cd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/psf/black - rev: 20.8b1 + rev: 21.4b0 hooks: - id: black language_version: python3 @@ -29,7 +29,7 @@ repos: - id: flake8 # additional_dependencies: [flake8-docstrings, flake8-bugbear, flake8-spellcheck, flake8-import-order] - repo: https://github.com/kynan/nbstripout - rev: 0.3.9 + rev: 0.4.0 hooks: - id: nbstripout - repo: https://github.com/asottile/blacken-docs