erplibre/script/maintenance
Mathieu Benoit f33aa8a64f [FIX] format : rendre repo facultatif, et montrer ce qu'il a dit
Un échec de « repo forall » arrêtait tout : la liste des fichiers locaux, déjà
obtenue, était jetée, et « make format » rendait 0 sans avoir formaté une
ligne. Sa sortie d'erreur, capturée puis jetée, emportait la seule explication,
et seule l'exception Python restait à l'écran. Google Repo n'ajoute pourtant
que les dépôts rapatriés : il est joué sans check, ce qu'il a écrit est relayé,
et les fichiers locaux sont formatés quand même. « Rien à formater » se dit au
lieu d'une sortie muette, et un échec du dépôt lui-même rend non nul.
Vérifié : avec un repo bouchonné qui échoue, son message s'affiche et le
fichier local est formaté.

--- EN ---

A failing "repo forall" stopped everything: the local file list, already
gathered, was dropped, and "make format" returned 0 without formatting a line.
Its error output, captured then thrown away, carried the only explanation, and
only the Python exception stayed on screen. Google Repo only adds the checked
out repositories: it runs without check, whatever it wrote is relayed, and
local files are formatted anyway. "Nothing to format" is said instead of a
silent exit, and a failure of the repository itself returns non-zero.
Checked: with a stub repo that fails, its message shows and the local file is
formatted.

Assisted-by: Claude Opus 5
2026-09-24 13:56:57 -04:00
..
autopep8.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
black.sh [IMP] format : un formateur par contexte, ruff pour l'outillage 2026-09-24 13:30:08 -04:00
format.sh [IMP] support multi version odoo on same workspace 2025-10-31 01:36:26 -04:00
format_bash.sh [IMP] support multi version odoo on same workspace 2025-10-31 01:36:26 -04:00
format_file_to_commit.py [FIX] format : rendre repo facultatif, et montrer ce qu'il a dit 2026-09-24 13:56:57 -04:00
format_python.sh [IMP] format : un formateur par contexte, ruff pour l'outillage 2026-09-24 13:30:08 -04:00
prettier.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00
prettier_xml.sh [FIX] script python: missing color log error 2024-05-03 23:13:59 -04:00