@@ -5,13 +5,19 @@ 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)
1212 /static/(src/)?lib/|
1313 # Repos using Sphinx to generate docs don't need prettying
1414 ^docs/_templates/.*\.html$|
15+ # Don't bother non-technical authors with formatting issues in docs
16+ readme/.*\.(rst|md)$|
17+ # Ignore build and dist directories in addons
18+ /build/|/dist/|
19+ # Ignore test files in addons
20+ /tests/samples/.*|
1521 # You don't usually want a bot to modify your legal texts
1622 (LICENSE.*|COPYING.*)
1723default_language_version :
@@ -33,14 +39,29 @@ repos:
3339 language : fail
3440 files : ' [a-zA-Z0-9_]*/i18n/en\.po$'
3541 - repo : https://github.com/oca/maintainer-tools
36- rev : ab1d7f6
42+ rev : d5fab7ee87fceee858a3d01048c78a548974d935
3743 hooks :
3844 # update the NOT INSTALLABLE ADDONS section above
3945 - id : oca-update-pre-commit-excluded-addons
4046 - id : oca-fix-manifest-website
4147 args : ["https://github.com/OCA/connector-ecommerce"]
48+ - id : oca-gen-addon-readme
49+ args :
50+ - --addons-dir=.
51+ - --branch=14.0
52+ - --org-name=OCA
53+ - --repo-name=connector-ecommerce
54+ - --if-source-changed
55+ - --keep-source-digest
56+ - repo : https://github.com/OCA/odoo-pre-commit-hooks
57+ rev : v0.0.25
58+ hooks :
59+ - id : oca-checks-odoo-module
60+ - id : oca-checks-po
61+ args :
62+ - --disable=po-pretty-format
4263 - repo : https://github.com/myint/autoflake
43- rev : v1.4
64+ rev : v1.5.3
4465 hooks :
4566 - id : autoflake
4667 args :
@@ -54,25 +75,35 @@ repos:
5475 rev : 22.3.0
5576 hooks :
5677 - id : black
57- - repo : https://github.com/pre-commit/mirrors-prettier
58- rev : v2.1.2
78+ - repo : local
5979 hooks :
6080 - id : prettier
6181 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
6290 additional_dependencies :
6391649265- args :
66- - --plugin=@prettier/plugin-xml
67- files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
68- - repo : https://github.com/pre-commit/mirrors-eslint
69- rev : v7.8.1
93+ - repo : local
7094 hooks :
7195 - id : eslint
72- verbose : true
96+ name : eslint
97+ entry : eslint
7398 args :
7499 - --color
75100 - --fix
101+ verbose : true
102+ types : [javascript]
103+ language : node
104+ additional_dependencies :
105+ 106+ - " eslint-plugin-jsdoc@"
76107 - repo : https://github.com/pre-commit/pre-commit-hooks
77108 rev : v3.2.0
78109 hooks :
@@ -119,7 +150,7 @@ repos:
119150 - --header
120151 - " # generated from manifests external_dependencies"
121152 - repo : https://github.com/PyCQA/flake8
122- rev : 3.8.3
153+ rev : 5.0.0
123154 hooks :
124155 - id : flake8
125156 name : flake8
0 commit comments