@@ -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/oca/maintainer-tools
42
- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
42
+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
43
43
hooks :
44
44
# update the NOT INSTALLABLE ADDONS section above
45
45
- id : oca-update-pre-commit-excluded-addons
58
58
hooks :
59
59
- id : oca-checks-odoo-module
60
60
- id : oca-checks-po
61
+ args :
62
+ - --disable=po-pretty-format
61
63
- repo : https://github.com/myint/autoflake
62
64
rev : v1.6.1
63
65
hooks :
@@ -73,27 +75,37 @@ repos:
73
75
rev : 22.8.0
74
76
hooks :
75
77
- id : black
76
- - repo : https://github.com/pre-commit/mirrors-prettier
77
- rev : v2.7.1
78
+ - repo : local
78
79
hooks :
79
80
- id : prettier
80
81
name : prettier (with plugin-xml)
82
+ entry : prettier
83
+ args :
84
+ - --write
85
+ - --list-different
86
+ - --ignore-unknown
87
+ types : [text]
88
+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
89
+ language : node
81
90
additional_dependencies :
82
91
- " prettier@2.7.1"
83
92
- " @prettier/plugin-xml@2.2.0"
84
- args :
85
- - --plugin=@prettier/plugin-xml
86
- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
87
93
# For ebill_postfinance don't format the message template files
88
94
exclude : /messages/.*\.xml$|/components/wsdl/.*\.xml$|/tests/examples/.*\.xml$
89
- - repo : https://github.com/pre-commit/mirrors-eslint
90
- rev : v8.24.0
95
+ - repo : local
91
96
hooks :
92
97
- id : eslint
93
- verbose : true
98
+ name : eslint
99
+ entry : eslint
94
100
args :
95
101
- --color
96
102
- --fix
103
+ verbose : true
104
+ types : [javascript]
105
+ language : node
106
+ additional_dependencies :
107
+ - " eslint@8.24.0"
108
+ - " eslint-plugin-jsdoc@"
97
109
- repo : https://github.com/pre-commit/pre-commit-hooks
98
110
rev : v4.3.0
99
111
hooks :
@@ -140,7 +152,7 @@ repos:
140
152
- --header
141
153
- " # generated from manifests external_dependencies"
142
154
- repo : https://github.com/PyCQA/flake8
143
- rev : 3.9.2
155
+ rev : 5.0.0
144
156
hooks :
145
157
- id : flake8
146
158
name : flake8
0 commit comments