Skip to content

Commit

Permalink
Use our local pre-commit for compatibility
Browse files Browse the repository at this point in the history
Newer versions of Black only support pre-commit > 3.2.0 and the distro's
version may be older. See psf/black#4041

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
  • Loading branch information
abompard committed Dec 5, 2023
1 parent cbf34e0 commit e0742a4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Expand Up @@ -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
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -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
Expand Down

0 comments on commit e0742a4

Please sign in to comment.