11# See https://pre-commit.com for more information
22# See https://pre-commit.com/hooks.html for more hooks
3- exclude : (^coraza/api/coreruleset|(^LICENSE.md|.svg)$)
3+ exclude : (^coraza/api/coreruleset|^package-lock\.json$| (^LICENSE.md|.svg)$)
44repos :
55 - repo : https://github.com/pre-commit/pre-commit-hooks
6- rev : 2c9f875913ee60ca25ce70243dc24d5b6415598c # frozen: v4.6 .0
6+ rev : 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0 .0
77 hooks :
88 - id : trailing-whitespace
99 - id : end-of-file-fixer
1010 - id : check-yaml
1111 args : ["--allow-multiple-documents"]
1212 - id : check-case-conflict
1313
14- - repo : https://github.com/ambv /black
15- rev : 3702ba224ecffbcec30af640c149f231d90aebdb # frozen: 24.4.2
14+ - repo : https://github.com/psf /black
15+ rev : 87928e6d6761a4a6d22250e1fee5601b3998086e # frozen: 26.5.1
1616 hooks :
1717 - id : black
1818 name : Black Python Formatter
19- language_version : python3.9
19+ language_version : python3.11
2020
21- - repo : https://github.com/pre-commit/mirrors-prettier
22- rev : ffb6a759a979008c0e6dff86e39f4745a2d9eac4 # frozen: v3.1.0
21+ - repo : local
2322 hooks :
2423 - id : prettier
2524 name : Prettier Code Formatter
25+ # Uses the pinned prettier from the repo's package.json / package-lock.json
26+ # (installed via `npm ci`); npx resolves the local node_modules/.bin binary.
27+ entry : npx prettier --write
28+ language : system
29+ types : [text]
30+ files : \.(js|ts|jsx|tsx|css|less|html|json|markdown|md|yaml|yml)$
2631
2732 - repo : https://github.com/JohnnyMorganz/StyLua
28- rev : 84c370104d6a8d1eef00c80a3ebd42f7033aaaad # frozen: v0.20.0
33+ rev : a6433cd8ed974a1dd769d41a46b5008858e58e94 # frozen: v2.5.2
2934 hooks :
3035 - id : stylua-github
3136
@@ -36,14 +41,22 @@ repos:
3641 args : ["--std", "min", "--codes", "--ranges", "--no-cache"]
3742
3843 - repo : https://github.com/pycqa/flake8
39- rev : 1978e2b0de6efa0cb2a2b6f3f7986aa6569dd2be # frozen: 7.1 .0
44+ rev : d93590f5be797aabb60e3b09f2f52dddb02f349f # frozen: 7.3 .0
4045 hooks :
4146 - id : flake8
4247 name : Flake8 Python Linter
43- args : ["--max-line-length=250", "--ignore=E266,E402,E722,W503"]
48+ args : ["--max-line-length=160", "--ignore=E266,E402,E501,E722,W503"]
49+
50+ - repo : https://github.com/dosisod/refurb
51+ rev : 0dbb127465ca9398b6c89c32a7fd86d78ca755c4 # frozen: v2.3.1
52+ hooks :
53+ - id : refurb
54+ name : Refurb Python Refactoring Tool
55+ exclude : ^tests/
56+ additional_dependencies : ["mypy<1.20"]
4457
4558 - repo : https://github.com/codespell-project/codespell
46- rev : 193cd7d27cd571f79358af09a8fb8997e54f8fff # frozen: v2.3.0
59+ rev : 2ccb47ff45ad361a21071a7eedda4c37e6ae8c5a # frozen: v2.4.2
4760 hooks :
4861 - id : codespell
4962 name : Codespell Spell Checker
@@ -52,11 +65,11 @@ repos:
5265 types : [text]
5366
5467 - repo : https://github.com/gitleaks/gitleaks
55- rev : 77c3c6a34b2577d71083442326c60b8fd58926ec # frozen: v8.18.4
68+ rev : 2ca41cc1372d1e939a6a879f18cdc19fc1cac1ce # frozen: v8.30.0
5669 hooks :
5770 - id : gitleaks
5871
5972 - repo : https://github.com/koalaman/shellcheck-precommit
60- rev : 2491238703a5d3415bb2b7ff11388bf775372f29 # frozen: v0.10 .0
73+ rev : 99470f5e12208ff0fb17ab81c3c494f7620a1d8d # frozen: v0.11 .0
6174 hooks :
6275 - id : shellcheck
0 commit comments