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: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ebc6e8fd..14d0543f 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 @@ -23,13 +23,13 @@ repos: hooks: - id: docformatter args: [--in-place] -- repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.0 +- repo: https://github.com/PyCQA/flake8 + rev: 3.9.1 hooks: - 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 @@ -37,7 +37,7 @@ repos: hooks: - id: blacken-docs - repo: https://github.com/nbQA-dev/nbQA - rev: 0.5.9 + rev: 0.7.0 hooks: - id: nbqa-black args: [--nbqa-mutate] \ No newline at end of file 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 0c92c9e1..5a8521f5 100644 --- a/docs/examples/music-segmentation.ipynb +++ b/docs/examples/music-segmentation.ipynb @@ -48,8 +48,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" ] },