@@ -7,7 +7,7 @@ exclude: |
7
7
# Files and folders generated by bots, to avoid loops
8
8
^setup/|/static/description/index\.html$|
9
9
# We don't want to mess with tool-generated files
10
- .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
10
+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
11
11
# Maybe reactivate this when all README files include prettier ignore tags?
12
12
^README\.md$|
13
13
# Library files can have extraneous formatting (even minimized)
41
41
language : fail
42
42
files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
43
43
- repo : https://github.com/oca/maintainer-tools
44
- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
44
+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
45
45
hooks :
46
46
# update the NOT INSTALLABLE ADDONS section above
47
47
- id : oca-update-pre-commit-excluded-addons
@@ -60,8 +60,10 @@ repos:
60
60
hooks :
61
61
- id : oca-checks-odoo-module
62
62
- id : oca-checks-po
63
+ args :
64
+ - --disable=po-pretty-format
63
65
- repo : https://github.com/myint/autoflake
64
- rev : v1.4
66
+ rev : v1.5.3
65
67
hooks :
66
68
- id : autoflake
67
69
args :
@@ -75,25 +77,35 @@ repos:
75
77
rev : 22.3.0
76
78
hooks :
77
79
- id : black
78
- - repo : https://github.com/pre-commit/mirrors-prettier
79
- rev : v2.4.1
80
+ - repo : local
80
81
hooks :
81
82
- id : prettier
82
83
name : prettier (with plugin-xml)
84
+ entry : prettier
85
+ args :
86
+ - --write
87
+ - --list-different
88
+ - --ignore-unknown
89
+ types : [text]
90
+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
91
+ language : node
83
92
additional_dependencies :
84
93
- " prettier@2.4.1"
85
94
- " @prettier/plugin-xml@1.1.0"
86
- args :
87
- - --plugin=@prettier/plugin-xml
88
- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
89
- - repo : https://github.com/pre-commit/mirrors-eslint
90
- rev : v7.32.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@v7.32.0"
108
+ - " eslint-plugin-jsdoc@"
97
109
- repo : https://github.com/pre-commit/pre-commit-hooks
98
110
rev : v4.0.1
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