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 29059f1 commit 29cb1b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/tests.yml
Expand Up @@ -17,14 +17,19 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install pre-commit
run: dnf install -y pre-commit git
- name: Install dependencies
run: |
dnf install -y git
pip install poetry>=1.2
- name: Mark the working directory as safe for Git
run: git config --global --add safe.directory $PWD

- 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


licenses:
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Expand Up @@ -18,7 +18,7 @@ commands =
poetry run pytest {posargs}

[testenv:checks]
commands = pre-commit run --all-files
commands = poetry run pre-commit run --all-files

[testenv:docs]
changedir = datagrepper/docs
Expand Down

0 comments on commit 29cb1b5

Please sign in to comment.