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 ead325f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yml
Expand Up @@ -22,10 +22,14 @@ jobs:

- name: Install RPM dependencies
run: |
dnf install -y krb5-devel pre-commit
dnf install -y krb5-devel
pip install "poetry>=1.2"
- 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 ead325f

Please sign in to comment.