@@ -6,7 +6,7 @@ exclude: |
66 # Files and folders generated by bots, to avoid loops
77 ^setup/|/static/description/index\.html$|
88 # We don't want to mess with tool-generated files
9- .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|
9+ .svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs|
1010 # Maybe reactivate this when all README files include prettier ignore tags?
1111 ^README\.md$|
1212 # Library files can have extraneous formatting (even minimized)
4040 language : fail
4141 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
4242 - repo : https://github.com/oca/maintainer-tools
43- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
43+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
4444 hooks :
4545 # update the NOT INSTALLABLE ADDONS section above
4646 - id : oca-update-pre-commit-excluded-addons
@@ -59,8 +59,10 @@ repos:
5959 hooks :
6060 - id : oca-checks-odoo-module
6161 - id : oca-checks-po
62+ args :
63+ - --disable=po-pretty-format
6264 - repo : https://github.com/myint/autoflake
63- rev : v1.4
65+ rev : v1.5.3
6466 hooks :
6567 - id : autoflake
6668 args :
@@ -74,25 +76,35 @@ repos:
7476 rev : 22.3.0
7577 hooks :
7678 - id : black
77- - repo : https://github.com/pre-commit/mirrors-prettier
78- rev : v2.4.1
79+ - repo : local
7980 hooks :
8081 - id : prettier
8182 name : prettier (with plugin-xml)
83+ entry : prettier
84+ args :
85+ - --write
86+ - --list-different
87+ - --ignore-unknown
88+ types : [text]
89+ files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
90+ language : node
8291 additional_dependencies :
8392 - " prettier@2.4.1"
8493 - " @prettier/plugin-xml@1.1.0"
85- args :
86- - --plugin=@prettier/plugin-xml
87- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
88- - repo : https://github.com/pre-commit/mirrors-eslint
89- rev : v7.32.0
94+ - repo : local
9095 hooks :
9196 - id : eslint
92- verbose : true
97+ name : eslint
98+ entry : eslint
9399 args :
94100 - --color
95101 - --fix
102+ verbose : true
103+ types : [javascript]
104+ language : node
105+ additional_dependencies :
106+ - " eslint@v7.32.0"
107+ - " eslint-plugin-jsdoc@"
96108 - repo : https://github.com/pre-commit/pre-commit-hooks
97109 rev : v4.0.1
98110 hooks :
@@ -139,7 +151,7 @@ repos:
139151 - --header
140152 - " # generated from manifests external_dependencies"
141153 - repo : https://github.com/PyCQA/flake8
142- rev : 3.9.2
154+ rev : 5.0.0
143155 hooks :
144156 - id : flake8
145157 name : flake8
0 commit comments