@@ -5,7 +5,7 @@ exclude: |
55 # Files and folders generated by bots, to avoid loops
66 ^setup/|/static/description/index\.html$|
77 # We don't want to mess with tool-generated files
8- .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
8+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
99 # Maybe reactivate this when all README files include prettier ignore tags?
1010 ^README\.md$|
1111 # Library files can have extraneous formatting (even minimized)
@@ -22,7 +22,7 @@ exclude: |
2222 (LICENSE.*|COPYING.*)
2323default_language_version :
2424 python : python3
25- node : " 14.13 .0"
25+ node : " 22.9 .0"
2626repos :
2727 - repo : local
2828 hooks :
@@ -39,11 +39,11 @@ repos:
3939 language : fail
4040 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
4141 - repo : https://github.com/sbidoul/whool
42- rev : v0.5
42+ rev : v1.2
4343 hooks :
4444 - id : whool-init
4545 - repo : https://github.com/oca/maintainer-tools
46- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
46+ rev : bf9ecb9938b6a5deca0ff3d870fbd3f33341fded
4747 hooks :
4848 # update the NOT INSTALLABLE ADDONS section above
4949 - id : oca-update-pre-commit-excluded-addons
@@ -57,33 +57,47 @@ repos:
5757 - --repo-name=vertical-bike
5858 - --if-source-changed
5959 - --keep-source-digest
60+ - --convert-fragments-to-markdown
6061 - id : oca-gen-external-dependencies
6162 - repo : https://github.com/OCA/odoo-pre-commit-hooks
62- rev : v0.0.25
63+ rev : v0.0.33
6364 hooks :
6465 - id : oca-checks-odoo-module
6566 - id : oca-checks-po
66- - repo : https://github.com/pre-commit/mirrors-prettier
67- rev : v2.1.2
67+ args :
68+ - --disable=po-pretty-format
69+ - repo : local
6870 hooks :
6971 - id : prettier
7072 name : prettier (with plugin-xml)
71- additional_dependencies :
72- - " prettier@2.1.2"
73- - " @prettier/plugin-xml@0.12.0"
73+ entry : prettier
7474 args :
75- - --plugin=@prettier/plugin-xml
75+ - --write
76+ - --list-different
77+ - --ignore-unknown
78+ types : [text]
7679 files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
77- - repo : https://github.com/pre-commit/mirrors-eslint
78- rev : v7.8.1
80+ language : node
81+ additional_dependencies :
82+ - " prettier@3.3.3"
83+ - " @prettier/plugin-xml@3.4.1"
84+ - repo : local
7985 hooks :
8086 - id : eslint
81- verbose : true
87+ name : eslint
88+ entry : eslint
8289 args :
8390 - --color
8491 - --fix
92+ verbose : true
93+ types : [javascript]
94+ language : node
95+ additional_dependencies :
96+ - " eslint@9.12.0"
97+ - " eslint-plugin-jsdoc@50.3.1"
98+ - " globals@16.0.0"
8599 - repo : https://github.com/pre-commit/pre-commit-hooks
86- rev : v3.2 .0
100+ rev : v4.6 .0
87101 hooks :
88102 - id : trailing-whitespace
89103 # exclude autogenerated files
@@ -104,19 +118,14 @@ repos:
104118 - id : check-xml
105119 - id : mixed-line-ending
106120 args : ["--fix=lf"]
107- - repo : https://github.com/asottile/pyupgrade
108- rev : v2.7.2
109- hooks :
110- - id : pyupgrade
111- args : ["--keep-percent-format"]
112121 - repo : https://github.com/astral-sh/ruff-pre-commit
113- rev : v0.1.3
122+ rev : v0.6.8
114123 hooks :
115124 - id : ruff
116125 args : [--fix, --exit-non-zero-on-fix]
117126 - id : ruff-format
118127 - repo : https://github.com/OCA/pylint-odoo
119- rev : 7.0.2
128+ rev : v9.1.3
120129 hooks :
121130 - id : pylint_odoo
122131 name : pylint with optional checks
0 commit comments