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 e3cc766 commit 5d4711f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -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 =
Expand Down

0 comments on commit 5d4711f

Please sign in to comment.