@@ -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,25 +75,35 @@ 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
- - repo : https://github.com/pre-commit/mirrors-eslint
88
- rev : v8.24.0
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@8.24.0"
106
+ - " eslint-plugin-jsdoc@"
95
107
# SPECIAL CASE: barcode scanner app use Vue.js +
96
108
# advanced JS (modules, classes, etc)
97
109
# which are not supported by OCA rules yet.
@@ -142,7 +154,7 @@ repos:
142
154
- --header
143
155
- " # generated from manifests external_dependencies"
144
156
- repo : https://github.com/PyCQA/flake8
145
- rev : 3.9.2
157
+ rev : 5.0.0
146
158
hooks :
147
159
- id : flake8
148
160
name : flake8
0 commit comments