-
-
Notifications
You must be signed in to change notification settings - Fork 529
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99027de
commit 20104c6
Showing
5 changed files
with
42 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ exclude: | | |
# Files and folders generated by bots, to avoid loops | ||
^setup/|/static/description/index\.html$| | ||
# We don't want to mess with tool-generated files | ||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/| | ||
.svg$|/tests/([^/]+/)?cassettes/|^.copier-answers.yml$|^.github/|^eslint.config.cjs|^prettier.config.cjs| | ||
# Maybe reactivate this when all README files include prettier ignore tags? | ||
^README\.md$| | ||
# Library files can have extraneous formatting (even minimized) | ||
|
@@ -39,7 +39,7 @@ repos: | |
language: fail | ||
files: '[a-zA-Z0-9_]*/i18n/en\.po$' | ||
- repo: https://github.com/oca/maintainer-tools | ||
rev: 9a170331575a265c092ee6b24b845ec508e8ef75 | ||
rev: d5fab7ee87fceee858a3d01048c78a548974d935 | ||
hooks: | ||
# update the NOT INSTALLABLE ADDONS section above | ||
- id: oca-update-pre-commit-excluded-addons | ||
|
@@ -58,6 +58,8 @@ repos: | |
hooks: | ||
- id: oca-checks-odoo-module | ||
- id: oca-checks-po | ||
args: | ||
- --disable=po-pretty-format | ||
- repo: https://github.com/myint/autoflake | ||
rev: v1.6.1 | ||
hooks: | ||
|
@@ -73,25 +75,35 @@ repos: | |
rev: 22.8.0 | ||
hooks: | ||
- id: black | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
rev: v2.7.1 | ||
- repo: local | ||
hooks: | ||
- id: prettier | ||
name: prettier (with plugin-xml) | ||
entry: prettier | ||
args: | ||
- --write | ||
- --list-different | ||
- --ignore-unknown | ||
types: [text] | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
language: node | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "@prettier/[email protected]" | ||
args: | ||
- --plugin=@prettier/plugin-xml | ||
files: \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$ | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.24.0 | ||
- repo: local | ||
hooks: | ||
- id: eslint | ||
verbose: true | ||
name: eslint | ||
entry: eslint | ||
args: | ||
- --color | ||
- --fix | ||
verbose: true | ||
types: [javascript] | ||
language: node | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "eslint-plugin-jsdoc@" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
|
@@ -138,7 +150,7 @@ repos: | |
- --header | ||
- "# generated from manifests external_dependencies" | ||
- repo: https://github.com/PyCQA/flake8 | ||
rev: 3.9.2 | ||
rev: 5.0.0 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 | ||
|