@@ -8,7 +8,7 @@ exclude: |
88 # Files and folders generated by bots, to avoid loops
99 ^setup/|/static/description/index\.html$|
1010 # We don't want to mess with tool-generated files
11- .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
11+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
1212 # Maybe reactivate this when all README files include prettier ignore tags?
1313 ^README\.md$|
1414 # Library files can have extraneous formatting (even minimized)
4242 language : fail
4343 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
4444 - repo : https://github.com/oca/maintainer-tools
45- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
45+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
4646 hooks :
4747 # update the NOT INSTALLABLE ADDONS section above
4848 - id : oca-update-pre-commit-excluded-addons
6161 hooks :
6262 - id : oca-checks-odoo-module
6363 - id : oca-checks-po
64+ args :
65+ - --disable=po-pretty-format
6466 - repo : https://github.com/myint/autoflake
6567 rev : v1.6.1
6668 hooks :
@@ -76,25 +78,35 @@ repos:
7678 rev : 22.8.0
7779 hooks :
7880 - id : black
79- - repo : https://github.com/pre-commit/mirrors-prettier
80- rev : v2.7.1
81+ - repo : local
8182 hooks :
8283 - id : prettier
8384 name : prettier (with plugin-xml)
85+ entry : prettier
86+ args :
87+ - --write
88+ - --list-different
89+ - --ignore-unknown
90+ types : [text]
91+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
92+ language : node
8493 additional_dependencies :
8594 - " prettier@2.7.1"
8695 - " @prettier/plugin-xml@2.2.0"
87- args :
88- - --plugin=@prettier/plugin-xml
89- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
90- - repo : https://github.com/pre-commit/mirrors-eslint
91- rev : v8.24.0
96+ - repo : local
9297 hooks :
9398 - id : eslint
94- verbose : true
99+ name : eslint
100+ entry : eslint
95101 args :
96102 - --color
97103 - --fix
104+ verbose : true
105+ types : [javascript]
106+ language : node
107+ additional_dependencies :
108+ - " eslint@8.24.0"
109+ - " eslint-plugin-jsdoc@"
98110 - repo : https://github.com/pre-commit/pre-commit-hooks
99111 rev : v4.3.0
100112 hooks :
@@ -141,7 +153,7 @@ repos:
141153 - --header
142154 - " # generated from manifests external_dependencies"
143155 - repo : https://github.com/PyCQA/flake8
144- rev : 3.9.2
156+ rev : 5.0.0
145157 hooks :
146158 - id : flake8
147159 name : flake8
0 commit comments