@@ -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,8 +58,10 @@ repos:
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
- rev : v1.4
64
+ rev : v1.5.3
63
65
hooks :
64
66
- id : autoflake
65
67
args :
@@ -73,27 +75,45 @@ repos:
73
75
rev : 22.3.0
74
76
hooks :
75
77
- id : black
76
- - repo : https://github.com/pre-commit/mirrors-prettier
77
- rev : v2.1.2
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.1.2"
83
92
- " @prettier/plugin-xml@0.12.0"
93
+ <<<<<<< before updating
84
94
args :
85
95
- --plugin=@prettier/plugin-xml
86
96
files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
87
97
# For ebill_paynet don't format the message template files
88
98
exclude : /messages/.*\.xml$|/components/wsdl/.*\.xml$|/tests/examples/.*\.xml$
89
99
- repo : https://github.com/pre-commit/mirrors-eslint
90
100
rev : v7.8.1
101
+ =======
102
+ - repo : local
103
+ >>>>>>> after updating
91
104
hooks :
92
105
- id : eslint
93
- verbose : true
106
+ name : eslint
107
+ entry : eslint
94
108
args :
95
109
- --color
96
110
- --fix
111
+ verbose : true
112
+ types : [javascript]
113
+ language : node
114
+ additional_dependencies :
115
+ - " eslint@7.8.1"
116
+ - " eslint-plugin-jsdoc@"
97
117
- repo : https://github.com/pre-commit/pre-commit-hooks
98
118
rev : v3.2.0
99
119
hooks :
@@ -140,7 +160,7 @@ repos:
140
160
- --header
141
161
- " # generated from manifests external_dependencies"
142
162
- repo : https://github.com/PyCQA/flake8
143
- rev : 3.8.3
163
+ rev : 5.0.0
144
164
hooks :
145
165
- id : flake8
146
166
name : flake8
0 commit comments