[libcamera-devel] [PATCH 0/4] utils: checkstyle.py: Fix Trailer handling
Kieran Bingham
kieran.bingham at ideasonboard.com
Tue Jul 11 15:39:11 CEST 2023
Improve the handling of Trailer checking to support pre-commit hooks
which will run using the 'StagedChanges' and 'Amendment' commit types.
While there are no trailers to parse for StagedChanges, the existing
trailers can be checked for Amendment commits. Update the code to
support this, and also remove a RuntimeError from the checker which can
be replaced with a usual CommitIssue instance.
Kieran Bingham (4):
utils: checkstyle.py: Treat Malformed trailers as a CommitIssue
utils: checkstyle.py: Initialise staged trailers
utils: checkstyle.py: Derive Amendment from Commit
utils: checkstyle.py: Check trailers for Amendment commits
utils/checkstyle.py | 36 +++++++++++++++++++++++++-----------
1 file changed, 25 insertions(+), 11 deletions(-)
--
2.34.1
More information about the libcamera-devel
mailing list