summaryrefslogtreecommitdiffstatshomepage
path: root/tools/verifygitlog.py
Commit message (Collapse)AuthorAge
* CODECONVENTIONS: Require that commits be signed-off by the author.Damien George2023-05-08
| | | | | | And use "must" instead of "should" where appropriate in related text. Signed-off-by: Damien George <damien@micropython.org>
* all: Fix spelling mistakes based on codespell check.Damien George2023-04-27
| | | | Signed-off-by: Damien George <damien@micropython.org>
* tools/verifygitlog.py: Add additional help for subject line issues.Jim Mussared2022-10-07
| | | | | | | | | | | | | | | | This check used to just show the regular expression that failed to match, but the rules are pretty subtle and hard to interpret from the regular expression alone. Add some basic checks for the main things that go wrong: - Missing capitalisation. - Missing full-stop. - Missing path. - Single-word subject. This work was funded through GitHub Sponsors. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* tools/verifygitlog.py: Ignore comment lines in commit messages.Jim Mussared2022-10-07
| | | | | | | The "signed-off" check assumes that the Signed-off-by: line is the last, but there may me many lines of comments after this. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* tools: Add pre-commit support.Angus Gratton2022-10-04
| | | | | | | | | | | | Tweak the existing codeformat.py and verifygitlog.py to allow them to be easily called by pre-commit. (This turned out to be easier than using any existing pre-commit hooks, without making subtle changes in the formatting.) This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
* tools/verifygitlog.py: Ignore line length in body if it's a URL.David Lechner2022-02-18
| | | | | | | | This changes the git commit message line length check to ignore lines that contain URLs, since these cannot be wrapped without breaking tools that detect URLs and create a link. Signed-off-by: David Lechner <david@pybricks.com>
* tools/verifygitlog.py: Show required format regexp in error message.iTitou2021-02-21
| | | | Signed-off-by: iTitou <moiandme@gmail.com>
* tools/verifygitlog.py: Add script for verifying commit message format.stijn2021-01-30
The main rules enforced are: - At most 72 characters in the subject line, with a ": " in it. - At most 75 characters per line in the body. - No "noreply" email addresses.