1- # Copyright (c) 2022 - 2024 , Oracle and/or its affiliates. All rights reserved.
1+ # Copyright (c) 2022 - 2025 , Oracle and/or its affiliates. All rights reserved.
22# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/.
33
44# See https://pre-commit.com for more information
55# See https://pre-commit.com/hooks.html for more hooks
66default_install_hook_types : [pre-commit, commit-msg, pre-push]
7- default_stages : [commit]
7+ default_stages : [pre- commit]
88minimum_pre_commit_version : 3.0.0
99
1010repos :
@@ -17,29 +17,29 @@ repos:
1717
1818# Commitizen enforces semantic and conventional commit messages.
1919- repo : https://github.com/commitizen-tools/commitizen
20- rev : v3.27.0
20+ rev : v4.4.1
2121 hooks :
2222 - id : commitizen
2323 name : Check conventional commit message
2424 stages : [commit-msg]
2525
2626# Sort imports.
2727- repo : https://github.com/pycqa/isort
28- rev : 5.13.2
28+ rev : 6.0.1
2929 hooks :
3030 - id : isort
3131 name : Sort import statements
3232 args : [--settings-path, pyproject.toml]
3333
3434# Add Black code formatters.
3535- repo : https://github.com/ambv/black
36- rev : 24.4.2
36+ rev : 25.1.0
3737 hooks :
3838 - id : black
3939 name : Format code
4040 args : [--config, pyproject.toml]
4141- repo : https://github.com/asottile/blacken-docs
42- rev : 1.16.0
42+ rev : 1.19.1
4343 hooks :
4444 - id : blacken-docs
4545 name : Format code in docstrings
4848
4949# Upgrade and rewrite Python idioms.
5050- repo : https://github.com/asottile/pyupgrade
51- rev : v3.16.0
51+ rev : v3.19.1
5252 hooks :
5353 - id : pyupgrade
5454 name : Upgrade code idioms
@@ -58,18 +58,18 @@ repos:
5858# Similar to pylint, with a few more/different checks. For more available
5959# extensions: https://github.com/DmytroLitvinov/awesome-flake8-extensions
6060- repo : https://github.com/pycqa/flake8
61- rev : 6 .1.0
61+ rev : 7 .1.2
6262 hooks :
6363 - id : flake8
6464 name : Check flake8 issues
6565 files : ^src/macaron/|^tests/
6666 types : [text, python]
67- additional_dependencies : [flake8-bugbear==22.10.27, flake8-builtins==2.0.1, flake8-comprehensions==3.10.1, flake8-docstrings==1.6.0, flake8-mutable==1.2.0, flake8-noqa==1.3 .0, flake8-pytest-style==1.6.0, flake8-rst-docstrings==0.3.0, pep8-naming==0.13.2]
67+ additional_dependencies : [flake8-bugbear==22.10.27, flake8-builtins==2.0.1, flake8-comprehensions==3.10.1, flake8-docstrings==1.6.0, flake8-mutable==1.2.0, flake8-noqa==1.4 .0, flake8-pytest-style==1.6.0, flake8-rst-docstrings==0.3.0, pep8-naming==0.13.2]
6868 args : [--config, .flake8]
6969
7070# Check GitHub Actions workflow files.
7171- repo : https://github.com/Mateusz-Grzelinski/actionlint-py
72- rev : v1.7.1.15
72+ rev : v1.7.7.23
7373 hooks :
7474 - id : actionlint
7575
9898
9999# Check for potential security issues.
100100- repo : https://github.com/PyCQA/bandit
101- rev : 1.7.9
101+ rev : 1.8.3
102102 hooks :
103103 - id : bandit
104104 name : Check for security issues
@@ -110,17 +110,17 @@ repos:
110110# Enable a whole bunch of useful helper hooks, too.
111111# See https://pre-commit.com/hooks.html for more hooks.
112112- repo : https://github.com/pre-commit/pre-commit-hooks
113- rev : v4.6 .0
113+ rev : v5.0 .0
114114 hooks :
115115 - id : check-ast
116116 - id : check-case-conflict
117117 - id : check-merge-conflict
118118 - id : debug-statements
119119 - id : end-of-file-fixer
120- stages : [commit]
120+ stages : [pre- commit]
121121 - id : trailing-whitespace
122122 args : [--markdown-linebreak-ext=md]
123- stages : [commit]
123+ stages : [pre- commit]
124124 exclude : ^tests/(.)*\.ambr$
125125 - id : detect-private-key
126126 - id : detect-aws-credentials
@@ -151,7 +151,7 @@ repos:
151151
152152# Check and prettify the configuration files.
153153- repo : https://github.com/macisamuele/language-formatters-pre-commit-hooks
154- rev : v2.13 .0
154+ rev : v2.14 .0
155155 hooks :
156156 - id : pretty-format-ini
157157 args : [--autofix]
@@ -185,7 +185,7 @@ repos:
185185 verbose : true
186186 always_run : true
187187 pass_filenames : false
188- stages : [push]
188+ stages : [pre- push]
189189
190190# Checks the copyright header for .js, .py, and .java, etc. files.
191191- repo : local
@@ -199,7 +199,7 @@ repos:
199199
200200# A linter for Golang
201201- repo : https://github.com/golangci/golangci-lint
202- rev : v1.61.0
202+ rev : v1.64.6
203203 hooks :
204204 - id : golangci-lint
205205
0 commit comments