Skip to content

Commit

Permalink
ci: Update pre-commit hooks
Browse files Browse the repository at this point in the history
Update pre-commit hooks to the latest versions and
limit the pre-commit version to <4.0.0 because of
<PyCQA/docformatter#289>.
  • Loading branch information
jamilraichouni committed Oct 7, 2024
1 parent 6eacceb commit 5b75bb4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
python-version: '3.11'
- name: Install pre-commit
run: |-
python -m pip install pre-commit
python -m pip install 'pre-commit<4.0.0'
- name: Run pre-commit
run: |-
pre-commit run --all-files
Expand Down
18 changes: 9 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# SPDX-License-Identifier: CC0-1.0

default_install_hook_types: [commit-msg, pre-commit]
default_stages: [commit, merge-commit]
default_stages: [pre-commit, pre-merge-commit]
minimum_pre_commit_version: 3.2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
Expand All @@ -28,7 +28,7 @@ repos:
- id: fix-byte-order-marker
- id: trailing-whitespace
- repo: https://github.com/pylint-dev/pylint
rev: v3.1.0
rev: v3.3.1
hooks:
- id: pylint
additional_dependencies:
Expand All @@ -40,7 +40,7 @@ repos:
- -dfixme
- -dduplicate-code
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.3.0
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
Expand All @@ -61,7 +61,7 @@ repos:
additional_dependencies:
- pydocstyle[toml]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.9.0
rev: v1.11.2
hooks:
- id: mypy
additional_dependencies:
Expand Down Expand Up @@ -121,23 +121,23 @@ repos:
- --comment-style
- '..| |'
- repo: https://github.com/fsfe/reuse-tool
rev: v3.0.2
rev: v4.0.3
hooks:
- id: reuse
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v9.14.0
rev: v9.18.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies:
- '@commitlint/config-conventional'
- repo: https://github.com/asottile/pyupgrade
rev: v3.15.2
rev: v3.17.0
hooks:
- id: pyupgrade
args: ['--py311-plus']
- repo: https://github.com/hadolint/hadolint
rev: v2.12.0
rev: v2.13.1-beta
hooks:
- id: hadolint-docker
- repo: local
Expand Down

0 comments on commit 5b75bb4

Please sign in to comment.