-
Notifications
You must be signed in to change notification settings - Fork 114
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
Showing
15 changed files
with
361 additions
and
332 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ repos: | |
rev: 23.7.0 | ||
hooks: | ||
- id: black | ||
additional_dependencies: ["click<8.1.0"] | ||
additional_dependencies: ["click<=8.1.7"] | ||
- repo: https://github.com/asottile/pyupgrade | ||
rev: v3.10.1 | ||
hooks: | ||
|
@@ -79,10 +79,8 @@ repos: | |
name: prettier + plugin-xml | ||
additional_dependencies: | ||
# HACK https://github.com/prettier/pre-commit/issues/16#issuecomment-713474520 | ||
- [email protected] | ||
- "@prettier/[email protected]" | ||
args: | ||
- --plugin=@prettier/plugin-xml | ||
- [email protected] | ||
- "@prettier/[email protected]" | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.4.0 | ||
hooks: | ||
|
@@ -107,35 +105,40 @@ repos: | |
rev: 6.1.0 | ||
hooks: | ||
- id: flake8 | ||
name: flake8 except __init__.py | ||
exclude: /__init__\.py$ | ||
additional_dependencies: ["flake8-bugbear==20.1.4", "importlib-metadata<5.0.0"] | ||
name: flake8 except __init__.py, __manifest__.py | ||
exclude: /__(?:init|manifest)__\.py$ | ||
additional_dependencies: ["flake8-bugbear==23.7.10", "importlib-metadata<=6.8.0"] | ||
- id: flake8 | ||
name: flake8 only __init__.py | ||
args: ["--extend-ignore=F401"] # ignore unused imports in __init__.py | ||
files: /__init__\.py$ | ||
additional_dependencies: ["flake8-bugbear==20.1.4", "importlib-metadata<5.0.0"] | ||
additional_dependencies: ["flake8-bugbear==23.7.10", "importlib-metadata<=6.8.0"] | ||
- id: flake8 | ||
name: flake8 only __manifest__.py | ||
args: ["--extend-ignore=B018"] # ignore found useless expression in __manifest__.py | ||
files: /__manifest__\.py$ | ||
additional_dependencies: ["flake8-bugbear==23.7.10", "importlib-metadata<=6.8.0"] | ||
- repo: https://github.com/pycqa/pylint | ||
rev: v2.15.10 | ||
rev: v2.13.5 | ||
hooks: | ||
- id: pylint | ||
name: pylint with optional checks | ||
args: | ||
- --valid-odoo-versions={{ "%.1f"|format(odoo_version) }} | ||
- --rcfile=.pylintrc | ||
- --exit-zero | ||
verbose: true | ||
additional_dependencies: | ||
- isort==5.12.0 | ||
- pylint-odoo==8.0.19 | ||
- pylint-odoo==8.0.0 | ||
- id: pylint | ||
name: pylint with mandatory checks | ||
args: | ||
- --valid-odoo-versions={{ "%.1f"|format(odoo_version) }} | ||
- --rcfile=.pylintrc-mandatory | ||
- odoo/auto/addons | ||
verbose: true | ||
additional_dependencies: | ||
- isort==5.12.0 | ||
- pylint-odoo==8.0.19 | ||
- pylint-odoo==8.0.0 | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
rev: v8.47.0 | ||
hooks: | ||
|
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
Oops, something went wrong.