@@ -62,36 +62,6 @@ repos:
6262 - id : oca-checks-po
6363 args :
6464 - --disable=po-pretty-format
65- - repo : https://github.com/myint/autoflake
66- rev : v1.6.1
67- hooks :
68- - id : autoflake
69- args :
70- - --expand-star-imports
71- - --ignore-init-module-imports
72- - --in-place
73- - --remove-all-unused-imports
74- - --remove-duplicate-keys
75- - --remove-unused-variables
76- - repo : https://github.com/psf/black
77- rev : 22.8.0
78- hooks :
79- - id : black
80- - repo : local
81- hooks :
82- - id : eslint
83- name : eslint
84- entry : eslint
85- args :
86- - --color
87- - --fix
88- verbose : true
89- types : [javascript]
90- language : node
91- additional_dependencies :
92- - " eslint@8.24.0"
93- - " eslint-plugin-jsdoc@"
94- - " globals@"
9565 - repo : https://github.com/pre-commit/pre-commit-hooks
9666 rev : v4.3.0
9767 hooks :
@@ -114,21 +84,8 @@ repos:
11484 - id : check-xml
11585 - id : mixed-line-ending
11686 args : ["--fix=lf"]
117- - repo : https://github.com/asottile/pyupgrade
118- rev : v2.38.2
119- hooks :
120- - id : pyupgrade
121- args : ["--keep-percent-format"]
122- - repo : https://github.com/PyCQA/isort
123- rev : 5.12.0
124- hooks :
125- - id : isort
126- name : isort except __init__.py
127- args :
128- - --settings=.
129- exclude : /__init__\.py$
13087 - repo : https://github.com/acsone/setuptools-odoo
131- rev : 3.1.8
88+ rev : 3.3.2
13289 hooks :
13390 - id : setuptools-odoo-make-default
13491 - id : setuptools-odoo-get-requirements
@@ -137,12 +94,12 @@ repos:
13794 - requirements.txt
13895 - --header
13996 - " # generated from manifests external_dependencies"
140- - repo : https://github.com/PyCQA/flake8
141- rev : 5.0.0
97+ - repo : https://github.com/astral-sh/ruff-pre-commit
98+ rev : v0.1.3
14299 hooks :
143- - id : flake8
144- name : flake8
145- additional_dependencies : ["flake8-bugbear==21.9.2"]
100+ - id : ruff
101+ args : [--fix, --exit-non-zero-on-fix]
102+ - id : ruff-format
146103 - repo : https://github.com/OCA/pylint-odoo
147104 rev : v8.0.19
148105 hooks :
0 commit comments