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

Message ID 20241018193246.805-1-laurent.pinchart@ideasonboard.com
Headers show
Series
  • utils: checkstyle.py: Improve dependency handling
Related show

Message

Laurent Pinchart Oct. 18, 2024, 7:32 p.m. UTC
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