From e3861c5247e3ef5ec4f48b3115940532b317b269 Mon Sep 17 00:00:00 2001 From: veit Date: Thu, 16 Jul 2026 12:03:30 +0200 Subject: [PATCH 1/8] * :construction_worker::wrench::memo: Switch to prek * Remove pre-commit --- .github/workflows/ci.yml | 19 +++++++++++-------- CHANGELOG.rst | 7 +++++++ docs/document/sphinx/test.rst | 18 ++++++++---------- docs/packs/apps.rst | 15 ++++++++------- docs/packs/distribution.rst | 6 +++--- docs/packs/templating/cruft.rst | 2 +- docs/test/tox.rst | 2 +- pyproject.toml | 2 +- 8 files changed, 40 insertions(+), 31 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7330414..903992f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,19 +12,22 @@ concurrency: permissions: {} jobs: - pre-commit: - name: pre-commit + prek: + name: prek + # External pull requests should be checked, but not our own internal pull + # requests again, as these are already checked by the push on the branch. + # Without this if condition, the checks would be performed twice, as + # internal pull requests correspond to both the push and pull_request + # events. + if: + github.event_name == 'push' || + github.event.pull_request.head.repo.full_name != github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 with: persist-credentials: false - - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 - - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 - with: - path: ~/.cache/pre-commit - key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} - - uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 + - uses: j178/prek-action@e98a699c41eb69ab013a45817a0406469a748f8d # v2.0.5 docs: name: Build docs and check links diff --git a/CHANGELOG.rst b/CHANGELOG.rst index b20a0ce..7f193ad 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,6 +17,13 @@ wir Zweige für ältere Versionen starten müssen. `Unreleased `_ --------------------------------------------------------------------------------------- +Changed +~~~~~~~ + +* 👷🔧📝 Switch to prek + + * Remove pre-commit + `25.1.0 `_ ------------------------------------------------------------------------------------- diff --git a/docs/document/sphinx/test.rst b/docs/document/sphinx/test.rst index 9b6be00..de3e96d 100644 --- a/docs/document/sphinx/test.rst +++ b/docs/document/sphinx/test.rst @@ -149,9 +149,8 @@ reST-Formatierung Ob die :doc:`Sphinx `-Dokumentation in gültigem :doc:`rest`-Format geschrieben ist, lässt sich mit `sphinx-lint `_ überprüfen. Dies binden wir -üblicherweise in unsere :doc:`pre-commit -`-Konfiguration -ein: +üblicherweise in unsere :doc:`prek +`-Konfiguration ein: .. code-block:: yaml :caption: .pre-commit-config.yaml @@ -201,8 +200,8 @@ Code-Formatierung Die Formatierung von Code-Blöcken lässt sich mit `blacken-docs `_ überprüfen, das :doc:`Python4DataScience:productive/qa/black` verwendet. Üblicherweise binden -wir die Bibliothek über das :doc:`pre-commit -`-Framework ein: +wir die Bibliothek über :doc:`prek +` ein: .. code-block:: yaml :caption: .pre-commit-config.yaml @@ -321,9 +320,8 @@ Anschließend solltet ihr :abbr:`ggf. (gegebenenfalls)` eure :ref:`.gitignore styles/* -Ihr könnt Vale für das :doc:`pre-commit -`-Framework -konfigurieren mit: +Ihr könnt Vale für :doc:`prek +` konfigurieren mit: .. code-block:: yaml :caption: .pre-commit-config.yaml @@ -393,8 +391,8 @@ Nun könnt ihr ``interrogate`` in eure :doc:`../../test/tox`-Datei einfügen, commands = interrogate --quiet --fail-under 95 src tests -Ihr könnt ``interrogate`` auch mit :doc:`pre-commit -` nutzen: +Ihr könnt ``interrogate`` auch mit :doc:`prek +` nutzen: .. code-block:: yaml :caption: .pre-commit-config.yaml diff --git a/docs/packs/apps.rst b/docs/packs/apps.rst index 9260eb6..e8d877f 100644 --- a/docs/packs/apps.rst +++ b/docs/packs/apps.rst @@ -124,10 +124,10 @@ Wollt ihr ``uv run`` in einer produktiven Umgebung verwenden, so wird mit der Aktualisieren der Python-Umgebung --------------------------------- -Standardmässig bevorzugt ``uv`` bei der Ausführung von ``uv sync`` und -``uv lock`` die gesperrten Versionen der Pakete. Paketversionen werden nur dann -geändert, wenn die Abhängigkeitsbedingungen des Projekts die vorherige, -gesperrte Version ausschließen. +``uv`` bevorzugt bei der Ausführung von ``uv sync`` und ``uv lock`` die +gesperrten Versionen der Pakete. Paketversionen werden nur dann geändert, wenn +die Abhängigkeitsbedingungen des Projekts die vorherige, gesperrte Version +ausschließen. Mit ``uv lock --upgrade`` könnt ihr alle Pakete aktualisieren und mit :samp:`uv lock --upgrade-package {PACKAGE}=={VERSION}` lassen sich einzelnes Pakete auf @@ -158,9 +158,9 @@ eine bestimmte Version aktualisieren. $ uv sync --exclude-newer-package "{PACKAGE}=P0D" .. tip:: - Ihr könnt auch mit dem - :doc:`Python4DataScience:productive/git/advanced/hooks/pre-commit` regelmäßig - eure eure :file:`uv.lock`-Datei aktualisieren: + Ihr könnt auch mit + :doc:`Python4DataScience:productive/git/advanced/hooks/prek` regelmäßig eure + :file:`uv.lock`-Datei aktualisieren: .. code-block:: yaml :caption: .pre-commit-config.yaml @@ -169,6 +169,7 @@ eine bestimmte Version aktualisieren. rev: 6a280ba12b7901e47757c868c8c13c6a624c9ecb # 0.11.7 hooks: - id: uv-lock + args: ["--exclude-newer = 'P3D'", "--quiet"] Plattform- und Python-Versionen einschränken -------------------------------------------- diff --git a/docs/packs/distribution.rst b/docs/packs/distribution.rst index e9afbd2..226ca98 100644 --- a/docs/packs/distribution.rst +++ b/docs/packs/distribution.rst @@ -317,8 +317,8 @@ Abhängigkeitsgruppen :lineno-start: 33 Auch rekursive Abhängigkeitsgruppen sind möglich. So könnt ihr beispielsweise -für ``dev`` neben ``pre-commit`` auch alle Abhängigkeiten aus ``docs`` und -``test`` übernehmen: +für ``dev`` neben ``prek`` auch alle Abhängigkeiten aus ``docs`` und ``test`` +übernehmen: .. literalinclude:: dataprep/pyproject.toml :language: toml @@ -773,7 +773,7 @@ Dateistruktur für Pakete erstellen: .. literalinclude:: mypack/pyproject.toml :caption: mypack/pyproject.toml - :emphasize-lines: 21 + :emphasize-lines: 20 :file:`mypack/src/mypack/__init__.py` Das Modul definiert eine CLI-Funktion :func:`main`: diff --git a/docs/packs/templating/cruft.rst b/docs/packs/templating/cruft.rst index 1d3a365..3e96027 100644 --- a/docs/packs/templating/cruft.rst +++ b/docs/packs/templating/cruft.rst @@ -84,7 +84,7 @@ Ein Projekt überprüfen Um festzustellen, ob ein Projekt eine Vorlagen-Aktualisierung verpasst hat, könnt ihr ganz einfach, ``cruft check`` aufrufen. Wenn das Projekt veraltet ist, wird ein Fehler und der :samp:`Exit-Code 1` zurückgegeben. ``cruft check`` kann -auch zu :doc:`Python4DataScience:productive/git/advanced/hooks/pre-commit` und +auch zu :doc:`Python4DataScience:productive/git/advanced/hooks/prek` und CI-Pipelines hinzugefügt werden, um sicherzustellen, dass Projekte nicht ungewollt veralten. diff --git a/docs/test/tox.rst b/docs/test/tox.rst index 09a0a08..8736b63 100644 --- a/docs/test/tox.rst +++ b/docs/test/tox.rst @@ -386,7 +386,7 @@ vornehmen, damit Parameter an pytest übergeben werden können: [tool.tox] requires = [ "tox>=4" ] env_list = [ - "pre-commit", + "prek", "docs", "py3{10-14}", "py{13-14}t", diff --git a/pyproject.toml b/pyproject.toml index a1cbe00..1f66d88 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,7 @@ urls.Homepage = "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/veit/python-basics-tutorial-de/" [dependency-groups] dev = [ "codespell", - "pre-commit", + "prek", "vale", { include-group = "docs" }, ] From d487130b1af8a602f4d38d503966d73cc16a5fcb Mon Sep 17 00:00:00 2001 From: veit Date: Fri, 17 Jul 2026 22:08:04 +0200 Subject: [PATCH 2/8] :memo: Update tox config --- docs/test/tox.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/test/tox.rst b/docs/test/tox.rst index 8736b63..fb0ad28 100644 --- a/docs/test/tox.rst +++ b/docs/test/tox.rst @@ -73,6 +73,10 @@ angegeben. Somit weiß tox, dass die entsprechenden Bibliotheken in dieser Umgebung installiert werden sollen. Mit ``commands`` wird tox schließlich angewiesen, ``pytest`` auszuführen. +Mit :samp:`tool.tox.env.{ENV_NAME}` ließe sich die Konfiguration für eine +bestimmte Umgebung hinzufügen und mit :samp:`tool.tox.env_pkg_base` die +Basiskonfiguration für Pakete. + tox ausführen ------------- From 5066bf9dc76eca03441daffbe4879ecb1c4d0867 Mon Sep 17 00:00:00 2001 From: veit Date: Wed, 22 Jul 2026 13:30:41 +0200 Subject: [PATCH 3/8] :memo: Add pip secure installs --- docs/libs/install.rst | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/docs/libs/install.rst b/docs/libs/install.rst index 781b3f5..d5b467b 100644 --- a/docs/libs/install.rst +++ b/docs/libs/install.rst @@ -17,8 +17,8 @@ jedoch zwei Probleme mit sich: Python bietet :ref:`pip` als aktuelle Lösung für beide Probleme an. ``pip`` versucht, das Modul im :term:`Python Package Index` (:term:`PyPI`) zu finden, lädt es und alle Abhängigkeiten herunter und kümmert sich um die Installation. -Ihr könnt auch :term:`pypi.org` direkt aufrufen und nach Paketen zu suchen oder -die Pakete nach Kategorien filtern. +Ihr könnt auch :term:`pypi.org` direkt aufrufen um nach Paketen zu suchen oder +die Pakete nach Kategorien zu filtern. .. warning:: Installiert niemals irgendetwas mit ``pip`` in das globale Python, auch nicht @@ -146,6 +146,29 @@ oder (.venv) $ python -m pip install "pandas>=2" +Üblicherweise führt ``pip`` jedoch keine Prüfungen zum Schutz vor Manipulationen +durch und ermöglicht die Ausführung von beliebigem Code aus den Distributionen. +Ihr könnt ``pip`` jedoch auch so nutzen, dass sicherere Installationsmechanismen +gewährleistet sind: + +``--require-hashes`` + aktiviert den Hash-Prüfmodus. + + Dies stellt sicher, dass Hashes in der Requirements-Datei bereitgestellt + wurden. Zudem ist es eine bequeme Möglichkeit, selbst eine Liste von Hashes + anzulegen, da dabei die Hashes der heruntergeladenen Pakete angezeigt + werden. Es wird für jedes Paket jedoch nur das bevorzugte Archiv + heruntergeladen, sodass ihr möglicherweise weiterhin Hashes für alternative + Archive mit :samp:`pip hash {PACKAGE_NAME}` hinzufügen müsst – + beispielsweise, wenn verschiedene Betriebssystemvarianten vorhanden sind. + +``--only-binary :all:`` + verhindert die Bereitstellung von Quellcode. + +.. seealso:: + * `Secure installs `_ + * `pip hash `_ + Proxy-Server ~~~~~~~~~~~~ From 320df5041227a2ef128abc1be7eed9b7c9830e22 Mon Sep 17 00:00:00 2001 From: veit Date: Fri, 24 Jul 2026 09:07:07 +0200 Subject: [PATCH 4/8] :memo: Add shot-scraper video --- docs/document/shot-scraper.rst | 57 +++++++++++++++++++++++++++------- docs/document/storyboard.yml | 34 ++++++++++++++++++++ 2 files changed, 79 insertions(+), 12 deletions(-) create mode 100644 docs/document/storyboard.yml diff --git a/docs/document/shot-scraper.rst b/docs/document/shot-scraper.rst index c9a5564..a54dcfb 100644 --- a/docs/document/shot-scraper.rst +++ b/docs/document/shot-scraper.rst @@ -1,9 +1,8 @@ shot-scraper ============ -`shot-scraper `_ ist ein -Werkzeug, mit dem sich der Prozess der Aktualisierung von Screenshots -automatisieren lässt. +`shot-scraper `_ ist ein Werkzeug, +mit dem sich die Aktualisierung von Screenshots automatisieren lässt. Installation ------------ @@ -16,22 +15,27 @@ Installation .. note:: Die zweite Zeile installiert den benötigten Browser. +.. seealso:: + `shot-scraper Installation + `_ + Verwendung ---------- -shot-scraper kann auf zweierlei Art verwendet werden +shot-scraper kann auf mehrere Arten verwendet werden #. …für einzelne Screenshots auf der Kommandozeile: .. code-block:: console - $ shot-scraper https://jupyter-tutorial.readthedocs.io/de/latest/clean-prep/index.html -o ~/Downloads/clean-prep.png + $ uv run shot-scraper https://jupyter-tutorial.readthedocs.io/de/latest/clean-prep/index.html -o ~/Downloads/clean-prep.png - …oder mit zusätzlichen Optionen, z.B. für JavaScript- und CSS-Selektoren: + …oder mit zusätzlichen Optionen, :abbr:`z. B. (zum Beispiel)` für + JavaScript- und CSS-Selektoren: - .. code-block:: + .. code-block:: console - $ shot-scraper https://jupyter-tutorial.readthedocs.io/de/latest/clean-prep/index.html -s '#overview' -o ~/Downloads/clean-prep.png + $ uv run shot-scraper https://jupyter-tutorial.readthedocs.io/de/latest/clean-prep/index.html -s '#overview' -o ~/Downloads/clean-prep.png #. …für eine Reihe von Screenshots, die in einer YAML-Datei konfiguriert sind: @@ -44,7 +48,8 @@ shot-scraper kann auf zweierlei Art verwendet werden quality: 40 output: example.jpg - Anschließend kann ``shot-scraper multi`` verwendet werden, z.B.: + Anschließend kann ``shot-scraper multi`` verwendet werden, :abbr:`z. B. (zum + Beispiel)`: .. code-block:: console @@ -53,13 +58,41 @@ shot-scraper kann auf zweierlei Art verwendet werden Screenshot of 'https://www.example.org/' written to 'example.jpg' .. seealso:: - * In der `README.md - `_-Datei - findet ihr eine vollständige Übersicht über die möglichen Optionen. + * `Taking multiple screenshots + `_ * Im shot-scraper-demo-Repository findet ihr eine deutlich umfangreichere `shots.yaml `_-Datei. +#. …für Videos: + + Der ``shot-scraper video``-Befehl nimmt ein WebM-Video anhand eines + :doc:`Python4DataScience:data-processing/serialisation-formats/yaml/index`-Storyboards + auf. Storyboards beschreiben das Video als Abfolge von Szenen. Jede Szene + kann eine Seite öffnen, auf Inhalte warten, Aktionen ausführen und zwischen + den Schritten eine Pause einlegen, :abbr:`z. B. (zum Beispiel)`: + + .. literalinclude:: storyboard.yml + :caption: storyboard.yml + :language: yaml + + Führt anschließend folgenden Befehl aus: + + .. code-block:: console + + $ uv run shot-scraper video storyboard.yml + + Dadurch wird ``url`` geöffnet, die Szenen werden aufgezeichnet und das Video + wird unter dem Namen :file:`demo.webm` gespeichert. + + Sofern `FFmpeg `_ installiert ist, könnt ihr mit der + Option ``--mp4`` das aufgezeichnete WebM-Video zusätzlich in MP4 + konvertieren. + + .. seealso:: + * `Recording videos + `_ + GitHub-Actions -------------- diff --git a/docs/document/storyboard.yml b/docs/document/storyboard.yml new file mode 100644 index 0000000..697a888 --- /dev/null +++ b/docs/document/storyboard.yml @@ -0,0 +1,34 @@ +output: demo.webm +url: https://python-basics-tutorial.readthedocs.io/en/latest/ + +viewport: + width: 1280 + height: 720 + +cursor: true +wait_for: "text=Python für Data Science" + +scenes: +- name: Home + do: + - pause: 1 + +- name: Introduction + do: + - click: ".sidebar-tree a[href='intro.html']" + - wait_for: 'h1:has-text("Introduction")' + - screenshot: intro.png + - pause: 1 + +- name: Search + do: + - click: "input.sidebar-search" + - type: + into: "input.sidebar-search" + text: "shot-scraper" + delay_ms: 25 + - press: + selector: "input.sidebar-search" + key: Enter + - wait_for: "text=Search Results" + - pause: 2 From 8a105d174c6034ccd9249d0bd3abcc3c349f0b86 Mon Sep 17 00:00:00 2001 From: veit Date: Sun, 26 Jul 2026 18:55:22 +0200 Subject: [PATCH 5/8] :memo: Update zizmor section --- docs/packs/publish.rst | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/docs/packs/publish.rst b/docs/packs/publish.rst index 64a6591..d81cbc5 100644 --- a/docs/packs/publish.rst +++ b/docs/packs/publish.rst @@ -419,9 +419,10 @@ zizmor ~~~~~~ `zizmor `_ kann viele Sicherheitsprobleme in typischen -CI/CD-Konfigurationen von GitHub Actions aufspüren und beheben. zizmor ist für -die Integration in GitHub Actions konzipiert. Eine typische GitHub Action von -uns für zizmor sieht so aus: +CI/CD-Konfigurationen von GitHub Actions aufspüren und beheben, wie :abbr:`z. B. +(zum Beispiel)` :ref:`token_exfiltration`. zizmor ist für die Integration in +GitHub Actions konzipiert. Eine typische GitHub Action von uns für zizmor sieht +so aus: .. code-block:: yaml :caption: .github/workflows/zizmor.yml @@ -457,6 +458,22 @@ uns für zizmor sieht so aus: with: persona: pedantic +Ihr könnt zizmor jedoch auch als pre-commit-Check verwenden, um Probleme zu +erkennen, bevor sie gepusht werden: + +.. code-block:: yaml + :caption: .pre-commit-config.yaml + + - repo: https://github.com/zizmorcore/zizmor-pre-commit + rev: 067260dc5fe6ea86b7551bfd6f8b3ba4e6c93129 # v1.28.0 + hooks: + - id: zizmor + +zizmor verfügt außerdem über eine `VS-Code-Integration +`_ und +kann als LSP-Server (``zizmor --lsp``) ausgeführt werden, um in jedem Editor +Feedback zu erhalten. + .. _add_2fa: 2FA für alle Entwicklungskonten From e30067398454ab05957d137a58f1f0e37835158d Mon Sep 17 00:00:00 2001 From: veit Date: Sun, 26 Jul 2026 19:23:27 +0200 Subject: [PATCH 6/8] :pencil2: Add anchor --- docs/packs/publish.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/packs/publish.rst b/docs/packs/publish.rst index d81cbc5..630058e 100644 --- a/docs/packs/publish.rst +++ b/docs/packs/publish.rst @@ -376,6 +376,8 @@ folgenden Schritte erforderlich: username: __token__ password: ${{ secrets.PYPI_TOKEN }} +.. _package-attestations: + Seit 14. November 2024 unterstützt :term:`PyPI` auch :pep:`740` mit `Digital Attestations `_. PyPI verwendet das `in-toto Attestation Framework `_ zum From 105c1a6ce75c4019b143fb6cbb8a5fd056efd13d Mon Sep 17 00:00:00 2001 From: veit Date: Mon, 3 Aug 2026 10:32:39 +0200 Subject: [PATCH 7/8] :memo: Add pytest-leak-finder --- CHANGELOG.rst | 5 +++++ docs/test/pytest/plugins.rst | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 7f193ad..81c75c2 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -17,6 +17,11 @@ wir Zweige für ältere Versionen starten müssen. `Unreleased `_ --------------------------------------------------------------------------------------- +Added +~~~~~ + +* 📝 Add pytest-leak-finder + Changed ~~~~~~~ diff --git a/docs/test/pytest/plugins.rst b/docs/test/pytest/plugins.rst index 074e47d..56d458b 100644 --- a/docs/test/pytest/plugins.rst +++ b/docs/test/pytest/plugins.rst @@ -171,6 +171,25 @@ Ablauf eines Test: :alt: Lizenz :target: https://github.com/tonybaloney/pytest-freethreaded?tab=MIT-1-ov-file#readme +`pytest-leak-finder `_ + für die binäre Suche nach Testartefakten. + + .. image:: https://raster.shields.io/github/stars/mgaitan/pytest-leak-finder + :alt: Stars + :target: https://github.com/mgaitan/pytest-leak-finder/stargazers + + .. image:: https://raster.shields.io/github/contributors/mgaitan/pytest-leak-finder + :alt: Contributors + :target: https://github.com/mgaitan/pytest-leak-finder/graphs/contributors + + .. image:: https://raster.shields.io/github/commit-activity/y/mgaitan/pytest-leak-finder + :alt: Commit activity + :target: https://github.com/mgaitan/pytest-leak-finder/graphs/commit-activity + + .. image:: https://raster.shields.io/github/license/mgaitan/pytest-leak-finder + :alt: Lizenz + :target: https://github.com/mgaitan/pytest-leak-finder?tab=MIT-1-ov-file + … veränderten Output ~~~~~~~~~~~~~~~~~~~~ From 06d7adfd8c225fc45b428c9b7addc3486f478296 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Aug 2026 18:20:41 +0000 Subject: [PATCH 8/8] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/3e8a8703264a2f4a69428a0aa4dcb512790b2c8c...v6.0.0) - [github.com/tox-dev/pyproject-fmt: cf78bb920f358be6dea099e6b1fd6f67bccb0955 → v2.26.0](https://github.com/tox-dev/pyproject-fmt/compare/cf78bb920f358be6dea099e6b1fd6f67bccb0955...v2.26.0) - [github.com/abravalheri/validate-pyproject: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 → v0.25](https://github.com/abravalheri/validate-pyproject/compare/4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7...v0.25) - [github.com/sphinx-contrib/sphinx-lint: c883505f64b59c3c5c9375191e4ad9f98e727ccd → v1.0.2](https://github.com/sphinx-contrib/sphinx-lint/compare/c883505f64b59c3c5c9375191e4ad9f98e727ccd...v1.0.2) - [github.com/pycqa/isort: 7f321d375f31a2f03833bc9a548e8783f2b5c420 → 9.0.0b1](https://github.com/pycqa/isort/compare/7f321d375f31a2f03833bc9a548e8783f2b5c420...9.0.0b1) - [github.com/psf/black-pre-commit-mirror: 4160603246a6b365d4a2af661c6d71b0a0f50478 → 26.5.1](https://github.com/psf/black-pre-commit-mirror/compare/4160603246a6b365d4a2af661c6d71b0a0f50478...26.5.1) - [github.com/adamchainz/blacken-docs: fda77690955e9b63c6687d8806bafd56a526e45f → 1.20.0](https://github.com/adamchainz/blacken-docs/compare/fda77690955e9b63c6687d8806bafd56a526e45f...1.20.0) - [github.com/codespell-project/codespell: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a → v2.4.3](https://github.com/codespell-project/codespell/compare/2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a...v2.4.3) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44c97e9..0fe2348 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,7 +6,7 @@ ci: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # v6.0.0 + rev: v6.0.0 # v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -15,38 +15,38 @@ repos: - id: check-added-large-files args: ['--maxkb=1024'] - repo: https://github.com/tox-dev/pyproject-fmt - rev: cf78bb920f358be6dea099e6b1fd6f67bccb0955 # v2.25.2 + rev: v2.26.0 # v2.25.2 hooks: - id: pyproject-fmt - repo: https://github.com/abravalheri/validate-pyproject - rev: 4b2e70d08cb2ccd26d1fba73588de41c7a5d50b7 # v0.25 + rev: v0.25 # v0.25 hooks: - id: validate-pyproject - repo: https://github.com/sphinx-contrib/sphinx-lint - rev: c883505f64b59c3c5c9375191e4ad9f98e727ccd # v1.0.2 + rev: v1.0.2 # v1.0.2 hooks: - id: sphinx-lint types: [rst] - repo: https://github.com/pycqa/isort - rev: 7f321d375f31a2f03833bc9a548e8783f2b5c420 # 9.0.0b1 + rev: 9.0.0b1 # 9.0.0b1 hooks: - id: isort additional_dependencies: ["toml"] entry: isort --profile=black name: isort (python) - repo: https://github.com/psf/black-pre-commit-mirror - rev: 4160603246a6b365d4a2af661c6d71b0a0f50478 # 26.5.1 + rev: 26.5.1 # 26.5.1 hooks: - id: black - repo: https://github.com/adamchainz/blacken-docs - rev: fda77690955e9b63c6687d8806bafd56a526e45f # 1.20.0 + rev: 1.20.0 # 1.20.0 hooks: - id: blacken-docs args: [--line-length=79] additional_dependencies: - black - repo: https://github.com/codespell-project/codespell - rev: 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # v2.4.2 + rev: v2.4.3 # v2.4.2 hooks: - id: codespell - repo: local