[PATCH 0/4] utils: checkstyle.py: Improve dependency handling

Laurent Pinchart laurent.pinchart at ideasonboard.com
Fri Oct 18 21:32:42 CEST 2024


Hello,

This small patch series improve dependencies handling in checkstyle.py.
The goal is to avoid Python exceptions when the autopep8 dependency
isn't found (see
https://gitlab.freedesktop.org/camera/libcamera/-/jobs/65242823), report
missing dependencies in a consistent way, and avoid those reports when
the missing dependency is not required to check the commits given to
checkstyle.py.

Laurent Pinchart (4):
  utils: checkstyle.py: Factor out common code to new CheckerBase class
  utils: checkstyle.py: Turn check() into a class method for all
    checkers
  utils: checkstyle.py: Print issues using __str__
  utils: checkstyle.py: Centralize dependency handling for checkers

 utils/checkstyle.py | 298 +++++++++++++++++++++-----------------------
 1 file changed, 140 insertions(+), 158 deletions(-)


base-commit: c8d261608aa63b35a60a4bb2307c53a1b26c6832
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list