From e0742a4a3a1e7f6cd3567004287be00462a34893 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Tue, 5 Dec 2023 11:45:22 +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/main.yml | 4 ++-- tox.ini | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 64d3910..df89581 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,7 +15,7 @@ jobs: - name: Install dependencies run: | - dnf install -y pre-commit git libpq-devel + dnf install -y git libpq-devel pip install poetry>=1.2 - name: Mark the working directory as safe for Git @@ -25,7 +25,7 @@ jobs: run: poetry install - name: Run pre-commit checks - run: pre-commit run --all-files + run: poetry run pre-commit run --all-files licenses: diff --git a/tox.ini b/tox.ini index f82ccef..bc9064d 100644 --- a/tox.ini +++ b/tox.ini @@ -32,7 +32,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] commands = poetry run devel/run-liccheck.sh