@@ -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 : " 16.17 .0"
25+ node : " 22.9 .0"
2626repos :
2727 - repo : local
2828 hooks :
@@ -66,25 +66,35 @@ repos:
6666 - id : oca-checks-po
6767 args :
6868 - --disable=po-pretty-format
69- - repo : https://github.com/pre-commit/mirrors-prettier
70- rev : v2.7.1
69+ - repo : local
7170 hooks :
7271 - id : prettier
7372 name : prettier (with plugin-xml)
74- additional_dependencies :
75- 76- 73+ entry : prettier
7774 args :
78- - --plugin=@prettier/plugin-xml
75+ - --write
76+ - --list-different
77+ - --ignore-unknown
78+ types : [text]
7979 files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
80- - repo : https://github.com/pre-commit/mirrors-eslint
81- rev : v8.24.0
80+ language : node
81+ additional_dependencies :
82+ 83+ 84+ - repo : local
8285 hooks :
8386 - id : eslint
84- verbose : true
87+ name : eslint
88+ entry : eslint
8589 args :
8690 - --color
8791 - --fix
92+ verbose : true
93+ types : [javascript]
94+ language : node
95+ additional_dependencies :
96+ 97+ 8898 - repo : https://github.com/pre-commit/pre-commit-hooks
8999 rev : v4.6.0
90100 hooks :
@@ -114,7 +124,7 @@ repos:
114124 args : [--fix, --exit-non-zero-on-fix]
115125 - id : ruff-format
116126 - repo : https://github.com/OCA/pylint-odoo
117- rev : v9.0.4
127+ rev : v9.1.3
118128 hooks :
119129 - id : pylint_odoo
120130 name : pylint with optional checks
0 commit comments