From 6d708d755639ff7a1e36549f762a9ca78f26b20e Mon Sep 17 00:00:00 2001 From: "Moises Lopez - https://www.vauxoo.com/" Date: Sat, 27 Dec 2025 15:15:14 -0600 Subject: [PATCH] [REF] oca_hooks.cfg: Disable repeated checks for autofixes Also, it will be faster since that 'fixit' tool is slow but if it is not autofix enabled so it better to disable it for optional checks --- src/pre_commit_vauxoo/cfg/.oca_hooks.cfg | 2 +- tests/test_pre_commit_vauxoo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg b/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg index 7ff2861..3d73580 100644 --- a/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg +++ b/src/pre_commit_vauxoo/cfg/.oca_hooks.cfg @@ -1,2 +1,2 @@ [MESSAGES_CONTROL] -disable=xml-oe-structure-missing-id,po-pretty-format +disable=manifest-superfluous-key,po-pretty-format,prefer-env-translation,prefer-readme-rst,xml-field-bool-without-eval,xml-field-numeric-without-eval,xml-header-missing,xml-header-wrong,xml-id-position-first,xml-oe-structure-missing-id,xml-redundant-module-name diff --git a/tests/test_pre_commit_vauxoo.py b/tests/test_pre_commit_vauxoo.py index 4ac797e..60c1eaf 100644 --- a/tests/test_pre_commit_vauxoo.py +++ b/tests/test_pre_commit_vauxoo.py @@ -213,7 +213,7 @@ def test_disable_oca_hooks(self): with open(os.path.join(self.tmp_dir, ".oca_hooks.cfg")) as hooks_cfg: f_content = hooks_cfg.read() self.assertIn( - "disable=xml-oe-structure-missing-id,po-pretty-format,random-message", + ",random-message", f_content, "random-message was supposed to be disabled through the corresponding environment variable", )