@@ -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)
39
39
language : fail
40
40
files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
41
41
- repo : https://github.com/sbidoul/whool
42
- rev : v0.5
42
+ rev : v1.2
43
43
hooks :
44
44
- id : whool-init
45
45
- repo : https://github.com/oca/maintainer-tools
@@ -64,27 +64,39 @@ repos:
64
64
hooks :
65
65
- id : oca-checks-odoo-module
66
66
- id : oca-checks-po
67
- - repo : https://github.com/pre-commit/mirrors-prettier
68
- rev : v2.7.1
67
+ args :
68
+ - --disable=po-pretty-format
69
+ - repo : local
69
70
hooks :
70
71
- id : prettier
71
72
name : prettier (with plugin-xml)
73
+ entry : prettier
74
+ args :
75
+ - --write
76
+ - --list-different
77
+ - --ignore-unknown
78
+ types : [text]
79
+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
80
+ language : node
72
81
additional_dependencies :
73
82
- " prettier@2.7.1"
74
83
- " @prettier/plugin-xml@2.2.0"
75
- args :
76
- - --plugin=@prettier/plugin-xml
77
- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
78
84
# For ebill_postfinance don't format the message template files
79
85
exclude : /messages/.*\.xml$|/components/wsdl/.*\.xml$|/tests/examples/.*\.xml$
80
- - repo : https://github.com/pre-commit/mirrors-eslint
81
- rev : v8.24.0
86
+ - repo : local
82
87
hooks :
83
88
- id : eslint
84
- verbose : true
89
+ name : eslint
90
+ entry : eslint
85
91
args :
86
92
- --color
87
93
- --fix
94
+ verbose : true
95
+ types : [javascript]
96
+ language : node
97
+ additional_dependencies :
98
+ - " eslint@8.24.0"
99
+ - " eslint-plugin-jsdoc@"
88
100
- repo : https://github.com/pre-commit/pre-commit-hooks
89
101
rev : v4.3.0
90
102
hooks :
0 commit comments