@@ -7,7 +7,7 @@ exclude: |
77 # Files and folders generated by bots, to avoid loops
88 ^setup/|/static/description/index\.html$|
99 # 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|
1111 # Maybe reactivate this when all README files include prettier ignore tags?
1212 ^README\.md$|
1313 # Library files can have extraneous formatting (even minimized)
4141 language : fail
4242 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
4343 - repo : https://github.com/oca/maintainer-tools
44- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
44+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
4545 hooks :
4646 # update the NOT INSTALLABLE ADDONS section above
4747 - id : oca-update-pre-commit-excluded-addons
@@ -60,8 +60,10 @@ repos:
6060 hooks :
6161 - id : oca-checks-odoo-module
6262 - id : oca-checks-po
63+ args :
64+ - --disable=po-pretty-format
6365 - repo : https://github.com/myint/autoflake
64- rev : v1.4
66+ rev : v1.5.3
6567 hooks :
6668 - id : autoflake
6769 args :
@@ -75,25 +77,35 @@ repos:
7577 rev : 22.3.0
7678 hooks :
7779 - id : black
78- - repo : https://github.com/pre-commit/mirrors-prettier
79- rev : v2.4.1
80+ - repo : local
8081 hooks :
8182 - id : prettier
8283 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
8392 additional_dependencies :
8493859486- 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
9196 hooks :
9297 - id : eslint
93- verbose : true
98+ name : eslint
99+ entry : eslint
94100 args :
95101 - --color
96102 - --fix
103+ verbose : true
104+ types : [javascript]
105+ language : node
106+ additional_dependencies :
107+ 108+ - " eslint-plugin-jsdoc@"
97109 - repo : https://github.com/pre-commit/pre-commit-hooks
98110 rev : v4.0.1
99111 hooks :
@@ -140,7 +152,7 @@ repos:
140152 - --header
141153 - " # generated from manifests external_dependencies"
142154 - repo : https://github.com/PyCQA/flake8
143- rev : 3.9.2
155+ rev : 5.0.0
144156 hooks :
145157 - id : flake8
146158 name : flake8
0 commit comments