22# See https://pre-commit.com/hooks.html for more hooks
33default_install_hook_types : [pre-commit, commit-msg, pre-push]
44default_stages : [commit]
5- minimum_pre_commit_version : 2.18 .0
5+ minimum_pre_commit_version : 3.0 .0
66exclude : ^.vscode/
77
88repos :
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
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
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
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
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
0 commit comments