@@ -5,7 +5,7 @@ exclude: |
5
5
# Files and folders generated by bots, to avoid loops
6
6
^setup/|/static/description/index\.html$|
7
7
# 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|
9
9
# Maybe reactivate this when all README files include prettier ignore tags?
10
10
^README\.md$|
11
11
# Library files can have extraneous formatting (even minimized)
@@ -22,7 +22,7 @@ exclude: |
22
22
(LICENSE.*|COPYING.*)
23
23
default_language_version :
24
24
python : python3
25
- node : " 16.17 .0"
25
+ node : " 22.9 .0"
26
26
repos :
27
27
- repo : local
28
28
hooks :
@@ -66,25 +66,35 @@ repos:
66
66
- id : oca-checks-po
67
67
args :
68
68
- --disable=po-pretty-format
69
- - repo : https://github.com/pre-commit/mirrors-prettier
70
- rev : v2.7.1
69
+ - repo : local
71
70
hooks :
72
71
- id : prettier
73
72
name : prettier (with plugin-xml)
74
- additional_dependencies :
75
- - " prettier@2.7.1"
76
- - " @prettier/plugin-xml@2.2.0"
73
+ entry : prettier
77
74
args :
78
- - --plugin=@prettier/plugin-xml
75
+ - --write
76
+ - --list-different
77
+ - --ignore-unknown
78
+ types : [text]
79
79
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
+ - " prettier@3.3.3"
83
+ - " @prettier/plugin-xml@3.4.1"
84
+ - repo : local
82
85
hooks :
83
86
- id : eslint
84
- verbose : true
87
+ name : eslint
88
+ entry : eslint
85
89
args :
86
90
- --color
87
91
- --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"
88
98
- repo : https://github.com/pre-commit/pre-commit-hooks
89
99
rev : v4.6.0
90
100
hooks :
@@ -114,7 +124,7 @@ repos:
114
124
args : [--fix, --exit-non-zero-on-fix]
115
125
- id : ruff-format
116
126
- repo : https://github.com/OCA/pylint-odoo
117
- rev : v9.0.4
127
+ rev : v9.1.3
118
128
hooks :
119
129
- id : pylint_odoo
120
130
name : pylint with optional checks
0 commit comments