@@ -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,25 +75,35 @@ 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"
84
- args :
85
- - --plugin=@prettier/plugin-xml
86
- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
87
- - repo : https://github.com/pre-commit/mirrors-eslint
88
- rev : v7.8.1
93
+ - repo : local
89
94
hooks :
90
95
- id : eslint
91
- verbose : true
96
+ name : eslint
97
+ entry : eslint
92
98
args :
93
99
- --color
94
100
- --fix
101
+ verbose : true
102
+ types : [javascript]
103
+ language : node
104
+ additional_dependencies :
105
+ - " eslint@7.8.1"
106
+ - " eslint-plugin-jsdoc@"
95
107
- repo : https://github.com/pre-commit/pre-commit-hooks
96
108
rev : v3.2.0
97
109
hooks :
@@ -138,7 +150,7 @@ repos:
138
150
- --header
139
151
- " # generated from manifests external_dependencies"
140
152
- repo : https://github.com/PyCQA/flake8
141
- rev : 3.8.3
153
+ rev : 5.0.0
142
154
hooks :
143
155
- id : flake8
144
156
name : flake8
0 commit comments