@@ -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)
@@ -14,6 +14,10 @@ exclude: |
1414 ^docs/_templates/.*\.html$|
1515 # Don't bother non-technical authors with formatting issues in docs
1616 readme/.*\.(rst|md)$|
17+ # Ignore build and dist directories in addons
18+ /build/|/dist/|
19+ # Ignore test files in addons
20+ /tests/samples/.*|
1721 # You don't usually want a bot to modify your legal texts
1822 (LICENSE.*|COPYING.*)
1923default_language_version :
3539 language : fail
3640 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
3741 - repo : https://github.com/oca/maintainer-tools
38- rev : 969238e47c07d0c40573acff81d170f63245d738
42+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
3943 hooks :
4044 # update the NOT INSTALLABLE ADDONS section above
4145 - id : oca-update-pre-commit-excluded-addons
@@ -48,13 +52,16 @@ repos:
4852 - --org-name=OCA
4953 - --repo-name=web-api
5054 - --if-source-changed
55+ - --keep-source-digest
5156 - repo : https://github.com/OCA/odoo-pre-commit-hooks
5257 rev : v0.0.25
5358 hooks :
5459 - id : oca-checks-odoo-module
5560 - id : oca-checks-po
61+ args :
62+ - --disable=po-pretty-format
5663 - repo : https://github.com/myint/autoflake
57- rev : v1.4
64+ rev : v1.5.3
5865 hooks :
5966 - id : autoflake
6067 args :
@@ -68,25 +75,35 @@ repos:
6875 rev : 22.3.0
6976 hooks :
7077 - id : black
71- - repo : https://github.com/pre-commit/mirrors-prettier
72- rev : v2.4.1
78+ - repo : local
7379 hooks :
7480 - id : prettier
7581 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
7690 additional_dependencies :
7791 - " prettier@2.4.1"
7892 - " @prettier/plugin-xml@1.1.0"
79- args :
80- - --plugin=@prettier/plugin-xml
81- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
82- - repo : https://github.com/pre-commit/mirrors-eslint
83- rev : v7.32.0
93+ - repo : local
8494 hooks :
8595 - id : eslint
86- verbose : true
96+ name : eslint
97+ entry : eslint
8798 args :
8899 - --color
89100 - --fix
101+ verbose : true
102+ types : [javascript]
103+ language : node
104+ additional_dependencies :
105+ - " eslint@v7.32.0"
106+ - " eslint-plugin-jsdoc@"
90107 - repo : https://github.com/pre-commit/pre-commit-hooks
91108 rev : v4.0.1
92109 hooks :
@@ -133,7 +150,7 @@ repos:
133150 - --header
134151 - " # generated from manifests external_dependencies"
135152 - repo : https://github.com/PyCQA/flake8
136- rev : 3.9.2
153+ rev : 5.0.0
137154 hooks :
138155 - id : flake8
139156 name : flake8
0 commit comments