@@ -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)
51
51
language : fail
52
52
files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
53
53
- repo : https://github.com/oca/maintainer-tools
54
- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
54
+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
55
55
hooks :
56
56
# update the NOT INSTALLABLE ADDONS section above
57
57
- id : oca-update-pre-commit-excluded-addons
@@ -70,8 +70,10 @@ repos:
70
70
hooks :
71
71
- id : oca-checks-odoo-module
72
72
- id : oca-checks-po
73
+ args :
74
+ - --disable=po-pretty-format
73
75
- repo : https://github.com/myint/autoflake
74
- rev : v1.4
76
+ rev : v1.5.3
75
77
hooks :
76
78
- id : autoflake
77
79
args :
@@ -85,25 +87,35 @@ repos:
85
87
rev : 22.3.0
86
88
hooks :
87
89
- id : black
88
- - repo : https://github.com/pre-commit/mirrors-prettier
89
- rev : v2.1.2
90
+ - repo : local
90
91
hooks :
91
92
- id : prettier
92
93
name : prettier (with plugin-xml)
94
+ entry : prettier
95
+ args :
96
+ - --write
97
+ - --list-different
98
+ - --ignore-unknown
99
+ types : [text]
100
+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
101
+ language : node
93
102
additional_dependencies :
94
103
- " prettier@2.1.2"
95
104
- " @prettier/plugin-xml@0.12.0"
96
- args :
97
- - --plugin=@prettier/plugin-xml
98
- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
99
- - repo : https://github.com/pre-commit/mirrors-eslint
100
- rev : v7.8.1
105
+ - repo : local
101
106
hooks :
102
107
- id : eslint
103
- verbose : true
108
+ name : eslint
109
+ entry : eslint
104
110
args :
105
111
- --color
106
112
- --fix
113
+ verbose : true
114
+ types : [javascript]
115
+ language : node
116
+ additional_dependencies :
117
+ - " eslint@7.8.1"
118
+ - " eslint-plugin-jsdoc@"
107
119
- repo : https://github.com/pre-commit/pre-commit-hooks
108
120
rev : v3.2.0
109
121
hooks :
@@ -150,7 +162,7 @@ repos:
150
162
- --header
151
163
- " # generated from manifests external_dependencies"
152
164
- repo : https://github.com/PyCQA/flake8
153
- rev : 3.8.3
165
+ rev : 5.0.0
154
166
hooks :
155
167
- id : flake8
156
168
name : flake8
0 commit comments