erplibre/script/git
Mathieu Benoit f9edaa4e59 [ADD] git : un garde-fou commit-msg pour le sujet
Rien ne tenait la convention sur le sujet : le tag est respecté partout,
c'est la longueur qui glisse. Le hook refuse le mécanique et rien de plus
— tag absent, plus de 72 caractères, sujet ouvrant sur une citation ; dire
sur quoi porte le code reste un jugement qu'aucun hook ne rendra. Il compte
des caractères et non des octets, sans quoi un sujet français de 72
caractères tomberait sur ses accents. Le refus enseigne le repli vers des
mots-clés plutôt que la troncature, et nomme `--no-verify` : un garde-fou
qui refuse trop est désinstallé. Les tests pèsent donc autant les
acceptations, « Merge branch » ou fixup de rebase. Le lanceur balaie le
préfixe test_git_ : 32 tests jamais exécutés, le total va de 1021 à 1071.

--- EN ---

Nothing held the subject convention: the tag is respected everywhere, it
is the length that slips. The hook refuses the mechanical and nothing more
— no tag, over 72 characters, a subject opening on a quotation; whether it
says what the code is about stays a judgement no hook will make. It counts
characters, not bytes, or a 72-character French subject would fall on its
accents. The refusal teaches the fallback to keywords rather than
truncation, and names `--no-verify`: a guard rail that refuses too much
gets uninstalled. So the tests weigh the acceptances as much, a "Merge
branch" or a rebase fixup. The runner sweeps the test_git_ prefix: 32
tests never ran, and the total goes from 1021 to 1071.

Assisted-by: Claude Opus 5
(cherry picked from commit c9abf4d1b723ae8ff3762d39bfe1d6982400d12d)
2026-08-29 02:11:04 -04:00
..
hooks [ADD] git : un garde-fou commit-msg pour le sujet 2026-08-29 02:11:04 -04:00
__init__.py [UPD] script: move script git, manifest, database, poetry, install 2023-01-02 21:54:20 -05:00
clean_repo_manifest.sh [FIX] git clean repo manifest adapt for multi odoo 2025-11-05 04:36:47 -05:00
commit_msg_lib.py [ADD] git : un garde-fou commit-msg pour le sujet 2026-08-29 02:11:04 -04:00
fork_project.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
fork_project_ERPLibre.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_change_remote.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_change_remote_https_to_git.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_diff_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_local_server.py [UPD] script Format 2026-03-14 23:26:31 -04:00
git_merge_repo_manifest.py [ADD] installation: add optional extra modules (CybroOdoo) 2026-08-07 02:09:24 -04:00
git_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_repo_update_group.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_show_code_diff_repo_manifest.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
git_tool.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
git_update_repo.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
github_api.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
pull_request_ERPLibre.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
remote_code_generation_git_compare.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_diff_last_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
repo_diff_stat_last_version.sh [IMP] refactoring .venv.erplibre 2025-10-31 01:34:26 -04:00
repo_remove_auto_install.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_revert_git_diff_date_from_code_generator.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00
repo_url.py [FIX] script: différer les annotations, la 12 tourne en Python 3.7 2026-08-23 03:13:58 -04:00
tag_push_all.py [IMP] script: update copyright year to 2026 2026-03-11 23:16:05 -04:00