@@ -16,7 +16,7 @@ exclude: |
1616 (LICENSE.*|COPYING.*)
1717default_language_version :
1818 python : python3
19- node : " 14.18 .0"
19+ node : " 22.9 .0"
2020repos :
2121 - repo : local
2222 hooks :
@@ -28,34 +28,29 @@ repos:
2828 language : fail
2929 files : " \\ .rej$"
3030 - repo : https://github.com/oca/maintainer-tools
31- rev : 7d8a9f9ad73db0976fb03cbee43d953bc29b89e9
31+ rev : bf9ecb9938b6a5deca0ff3d870fbd3f33341fded
3232 hooks :
3333 # update the NOT INSTALLABLE ADDONS section above
3434 - id : oca-update-pre-commit-excluded-addons
3535 - id : oca-fix-manifest-website
3636 args : ["https://github.com/OCA/OpenUpgrade"]
37- - repo : https://github.com/myint/autoflake
38- rev : v1.4
39- hooks :
40- - id : autoflake
41- args : ["-i", "--ignore-init-module-imports"]
42- - repo : https://github.com/psf/black
43- rev : 22.3.0
44- hooks :
45- - id : black
46- - repo : https://github.com/pre-commit/mirrors-prettier
47- rev : v2.6.2
37+ - repo : local
4838 hooks :
4939 - id : prettier
5040 name : prettier (with plugin-xml)
51- additional_dependencies :
52- - " prettier@2.4.1"
53- - " @prettier/plugin-xml@1.1.0"
41+ entry : prettier
5442 args :
55- - --plugin=@prettier/plugin-xml
43+ - --write
44+ - --list-different
45+ - --ignore-unknown
46+ types : [text]
5647 files : \.(css|htm|html|js|json|jsx|less|md|scss|toml|ts|xml|yaml|yml)$
48+ language : node
49+ additional_dependencies :
50+ - " prettier@3.3.3"
51+ - " @prettier/plugin-xml@3.4.1"
5752 - repo : https://github.com/pre-commit/pre-commit-hooks
58- rev : v4.2 .0
53+ rev : v4.6 .0
5954 hooks :
6055 - id : trailing-whitespace
6156 # exclude autogenerated files
@@ -76,44 +71,21 @@ repos:
7671 - id : check-xml
7772 - id : mixed-line-ending
7873 args : ["--fix=lf"]
79- - repo : https://github.com/asottile/pyupgrade
80- rev : v2.32.1
81- hooks :
82- - id : pyupgrade
83- args : ["--keep-percent-format"]
84- - repo : https://github.com/PyCQA/isort
85- rev : 5.12.0
86- hooks :
87- - id : isort
88- name : isort except __init__.py
89- args :
90- - --settings=.
91- exclude : /__init__\.py$
92- - repo : https://github.com/PyCQA/flake8
93- rev : 3.9.2
74+ - repo : https://github.com/astral-sh/ruff-pre-commit
75+ rev : v0.6.8
9476 hooks :
95- - id : flake8
96- name : flake8 except __init__.py
97- exclude : /__init__\.py$
98- additional_dependencies : ["flake8-bugbear==20.1.4"]
99- - id : flake8
100- name : flake8 only __init__.py
101- args : ["--extend-ignore=F401"] # ignore unused imports in __init__.py
102- files : /__init__\.py$
103- additional_dependencies : ["flake8-bugbear==20.1.4"]
104- - repo : https://github.com/PyCQA/pylint
105- rev : v2.11.1
77+ - id : ruff
78+ args : [--fix, --exit-non-zero-on-fix]
79+ - id : ruff-format
80+ - repo : https://github.com/OCA/pylint-odoo
81+ rev : v9.1.3
10682 hooks :
107- - id : pylint
83+ - id : pylint_odoo
10884 name : pylint with optional checks
10985 args :
11086 - --rcfile=.pylintrc
11187 - --exit-zero
11288 verbose : true
113- additional_dependencies : &pylint_deps
114- - pylint-odoo==5.0.4
115- - id : pylint
116- name : pylint with mandatory checks
89+ - id : pylint_odoo
11790 args :
11891 - --rcfile=.pylintrc-mandatory
119- additional_dependencies : *pylint_deps
0 commit comments