From fcad37c24f9a780945ed795bf5b0f2bcc94aa8cd Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 31 Aug 2026 00:03:50 -0400 Subject: [PATCH] =?UTF-8?q?[FIX]=20suite=20unitaire=20:=20bit=20d'ex=C3=A9?= =?UTF-8?q?cution,=20script/*.py=20balay=C3=A9,=20cl=C3=A9=20i18n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Trois contrôles préexistants passaient au rouge sur cette branche. Un fichier qui porte un shebang doit être exécutable : commité en 644, il casse deux invariants, le mode stocké par git et le bit sur disque. Ses six frères de script/analyse/ sont en 755. Le contrôle d'outillage ne balayait pas script/*.py : un module partagé posé là passait pour un paquet tiers non déclaré. Trois fichiers de plus entrent dans le balayage, sans révéler d'autre dépendance. Et une clé de traduction appelée six fois n'était pas déclarée, l'écran rendant un mot anglais. Vérifié : 4105 tests, tout vert. --- EN --- Three pre-existing checks were turning red on this branch. A file carrying a shebang must be executable: committed as 644, it breaks two invariants, the mode git stores and the bit on disk. Its six siblings in script/analyse/ are 755. The tooling check never scanned script/*.py: a shared module placed there was taken for an undeclared third-party package. Three more files enter the scan, revealing no other dependency. And a translation key called six times was undeclared, the screen rendering an English word. Checked: 4105 tests, all green. Assisted-by: Claude Opus 5 --- script/analyse/check_comment_hygiene.py | 0 script/todo/todo_i18n.py | 4 ++++ test/test_tooling_requirements.py | 1 + 3 files changed, 5 insertions(+) mode change 100644 => 100755 script/analyse/check_comment_hygiene.py diff --git a/script/analyse/check_comment_hygiene.py b/script/analyse/check_comment_hygiene.py old mode 100644 new mode 100755 diff --git a/script/todo/todo_i18n.py b/script/todo/todo_i18n.py index 5be45af..c182046 100644 --- a/script/todo/todo_i18n.py +++ b/script/todo/todo_i18n.py @@ -6885,6 +6885,10 @@ TRANSLATIONS = { "fr": "Hooks git", "en": "Git hooks", }, + "missing": { + "fr": "absent", + "en": "missing", + }, "up to date": { "fr": "à jour", "en": "up to date", diff --git a/test/test_tooling_requirements.py b/test/test_tooling_requirements.py index 0457472..a491d5a 100755 --- a/test/test_tooling_requirements.py +++ b/test/test_tooling_requirements.py @@ -28,6 +28,7 @@ REPO = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) REQUIREMENTS = os.path.join(REPO, "requirement", "erplibre_require-ments.txt") PATTERNS = ( + "script/*.py", "script/analyse/*.py", "script/analyse/*/*.py", "script/odoo/migration/*.py",