From 5d4711f1ffbb86768df52c108cc0b7d3c7805d66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Tue, 5 Dec 2023 12:32:21 +0100 Subject: [PATCH] Use our local pre-commit for compatibility MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Newer versions of Black only support pre-commit > 3.2.0 and the distro's version may be older. See https://github.com/psf/black/pull/4041 Signed-off-by: Aurélien Bompard --- .github/workflows/tests.yml | 7 +++++-- tox.ini | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 241d611..94eca82 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -22,10 +22,13 @@ jobs: - name: Install RPM dependencies run: | - dnf install -y krb5-devel pre-commit + dnf install -y krb5-devel + + - name: Install the project + run: poetry install - name: Run pre-commit checks - run: pre-commit run --all-files + run: poetry run pre-commit run --all-files docs: name: Documentation diff --git a/tox.ini b/tox.ini index 3f9d9b6..e78b2c6 100644 --- a/tox.ini +++ b/tox.ini @@ -27,7 +27,7 @@ commands= poetry run sphinx-build -W -b html -d {envtmpdir}/doctrees . _build/html [testenv:checks] -commands = pre-commit run --all-files +commands = poetry run pre-commit run --all-files [testenv:licenses] allowlist_externals =