@@ -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)
@@ -16,6 +16,8 @@ exclude: |
1616 readme/.*\.(rst|md)$|
1717 # Ignore build and dist directories in addons
1818 /build/|/dist/|
19+ # Ignore test files in addons
20+ /tests/samples/.*|
1921 # You don't usually want a bot to modify your legal texts
2022 (LICENSE.*|COPYING.*)
2123default_language_version :
3739 language : fail
3840 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
3941 - repo : https://github.com/oca/maintainer-tools
40- rev : 9a170331575a265c092ee6b24b845ec508e8ef75
42+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
4143 hooks :
4244 # update the NOT INSTALLABLE ADDONS section above
4345 - id : oca-update-pre-commit-excluded-addons
@@ -56,8 +58,10 @@ repos:
5658 hooks :
5759 - id : oca-checks-odoo-module
5860 - id : oca-checks-po
61+ args :
62+ - --disable=po-pretty-format
5963 - repo : https://github.com/myint/autoflake
60- rev : v1.4
64+ rev : v1.5.3
6165 hooks :
6266 - id : autoflake
6367 args :
@@ -71,25 +75,35 @@ repos:
7175 rev : 22.3.0
7276 hooks :
7377 - id : black
74- - repo : https://github.com/pre-commit/mirrors-prettier
75- rev : v2.1.2
78+ - repo : local
7679 hooks :
7780 - id : prettier
7881 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
7990 additional_dependencies :
8091 - " prettier@2.1.2"
8192 - " @prettier/plugin-xml@0.12.0"
82- args :
83- - --plugin=@prettier/plugin-xml
84- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
85- - repo : https://github.com/pre-commit/mirrors-eslint
86- rev : v7.8.1
93+ - repo : local
8794 hooks :
8895 - id : eslint
89- verbose : true
96+ name : eslint
97+ entry : eslint
9098 args :
9199 - --color
92100 - --fix
101+ verbose : true
102+ types : [javascript]
103+ language : node
104+ additional_dependencies :
105+ - " eslint@7.8.1"
106+ - " eslint-plugin-jsdoc@"
93107 - repo : https://github.com/pre-commit/pre-commit-hooks
94108 rev : v3.2.0
95109 hooks :
@@ -136,7 +150,7 @@ repos:
136150 - --header
137151 - " # generated from manifests external_dependencies"
138152 - repo : https://github.com/PyCQA/flake8
139- rev : 3.8.3
153+ rev : 5.0.0
140154 hooks :
141155 - id : flake8
142156 name : flake8
0 commit comments