Skip to content

Commit 77bac8b

Browse files
authored
chore(deps-dev): update pre-commit minimal version to v3, and update pre-commit tools (#558)
1 parent aef3361 commit 77bac8b

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
default_install_hook_types: [pre-commit, commit-msg, pre-push]
44
default_stages: [commit]
5-
minimum_pre_commit_version: 2.18.0
5+
minimum_pre_commit_version: 3.0.0
66
exclude: ^.vscode/
77

88
repos:
@@ -15,7 +15,7 @@ repos:
1515

1616
# Commitizen enforces semantic and conventional commit messages.
1717
- repo: https://github.com/commitizen-tools/commitizen
18-
rev: v3.5.3
18+
rev: 3.5.3
1919
hooks:
2020
- id: commitizen
2121
name: Check conventional commit message
@@ -37,7 +37,7 @@ repos:
3737
name: Format code
3838
args: [--config, pyproject.toml]
3939
- repo: https://github.com/asottile/blacken-docs
40-
rev: 1.13.0
40+
rev: 1.15.0
4141
hooks:
4242
- id: blacken-docs
4343
name: Format code in docstrings
@@ -46,7 +46,7 @@ repos:
4646

4747
# Upgrade and rewrite Python idioms.
4848
- repo: https://github.com/asottile/pyupgrade
49-
rev: v3.3.1
49+
rev: v3.9.0
5050
hooks:
5151
- id: pyupgrade
5252
name: Upgrade code idioms
@@ -62,7 +62,7 @@ repos:
6262
name: Check flake8 issues
6363
files: ^src/package/|^tests/
6464
types: [text, python]
65-
additional_dependencies: [flake8-bugbear==23.1.20, flake8-builtins==2.1.0, flake8-comprehensions==3.10.1, flake8-docstrings==1.7.0, flake8-mutable==1.2.0, flake8-noqa==1.3.0, flake8-print==5.0.0, flake8-pyi==23.3.1, flake8-pytest-style==1.6.0, flake8-rst-docstrings==0.3.0, pep8-naming==0.13.3]
65+
additional_dependencies: [flake8-bugbear==23.7.10, flake8-builtins==2.1.0, flake8-comprehensions==3.14.0, flake8-docstrings==1.7.0, flake8-mutable==1.2.0, flake8-noqa==1.3.2, flake8-print==5.0.0, flake8-pyi==23.6.0, flake8-pytest-style==1.7.2, flake8-rst-docstrings==0.3.0, pep8-naming==0.13.3]
6666
args: [--config, .flake8]
6767

6868
# Run Pylint from the local repo to make sure venv packages
@@ -90,7 +90,7 @@ repos:
9090

9191
# Check for potential security issues.
9292
- repo: https://github.com/PyCQA/bandit
93-
rev: 1.7.4
93+
rev: 1.7.5
9494
hooks:
9595
- id: bandit
9696
name: Check for security issues
@@ -107,6 +107,7 @@ repos:
107107
- id: check-ast
108108
- id: check-case-conflict
109109
- id: check-merge-conflict
110+
- id: check-added-large-files
110111
- id: debug-statements
111112
- id: end-of-file-fixer
112113
stages: [commit]
@@ -140,7 +141,7 @@ repos:
140141

141142
# Check and prettify the configuration files.
142143
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
143-
rev: v2.6.0
144+
rev: v2.10.0
144145
hooks:
145146
- id: pretty-format-ini
146147
args: [--autofix]
@@ -152,7 +153,7 @@ repos:
152153

153154
# Check GitHub Actions workflow files.
154155
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
155-
rev: v1.6.24
156+
rev: v1.6.25
156157
hooks:
157158
- id: actionlint
158159

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ docs = [
5757
"typing-extensions !=4.6.0",
5858
]
5959
hooks = [
60-
"pre-commit >=2.18.0,<3.4.0",
60+
"pre-commit >=3.0.0,<3.4.0",
6161
]
6262
# Note that the `custom_exit_code` and `env` plugins may currently be unmaintained.
6363
test = [

0 commit comments

Comments
 (0)