@@ -5,7 +5,7 @@ exclude: |
55 # Files and folders generated by bots, to avoid loops
66 ^setup/|/static/description/index\.html$|
77 # 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|
99 # Maybe reactivate this when all README files include prettier ignore tags?
1010 ^README\.md$|
1111 # Library files can have extraneous formatting (even minimized)
3939 language : fail
4040 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
4141 - repo : https://github.com/oca/maintainer-tools
42- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
42+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
4343 hooks :
4444 # update the NOT INSTALLABLE ADDONS section above
4545 - id : oca-update-pre-commit-excluded-addons
5858 hooks :
5959 - id : oca-checks-odoo-module
6060 - id : oca-checks-po
61+ args :
62+ - --disable=po-pretty-format
6163 - repo : https://github.com/myint/autoflake
6264 rev : v1.6.1
6365 hooks :
@@ -73,25 +75,35 @@ repos:
7375 rev : 22.8.0
7476 hooks :
7577 - id : black
76- - repo : https://github.com/pre-commit/mirrors-prettier
77- rev : v2.7.1
78+ - repo : local
7879 hooks :
7980 - id : prettier
8081 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
8190 additional_dependencies :
8291839284- 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
8994 hooks :
9095 - id : eslint
91- verbose : true
96+ name : eslint
97+ entry : eslint
9298 args :
9399 - --color
94100 - --fix
101+ verbose : true
102+ types : [javascript]
103+ language : node
104+ additional_dependencies :
105+ 106+ - " eslint-plugin-jsdoc@"
95107 - repo : https://github.com/pre-commit/pre-commit-hooks
96108 rev : v4.3.0
97109 hooks :
@@ -138,7 +150,7 @@ repos:
138150 - --header
139151 - " # generated from manifests external_dependencies"
140152 - repo : https://github.com/PyCQA/flake8
141- rev : 3.9.2
153+ rev : 5.0.0
142154 hooks :
143155 - id : flake8
144156 name : flake8
0 commit comments