Update pycodestyle for new tool support and more reliable output parsing.

Review Request #11551 — Created March 23, 2021 and submitted — Latest diff uploaded

Information

ReviewBot
release-3.0.x

Reviewers

This updates PycodestyleTool to subclass the newer BaseTool, and to use
the newer features it offers (dependencies, improved centralized base
command building, and standardized error code/column output).

The output from pycodestyle is now explicitly set, so we won't be
susceptible to any changes in pycodestyle in the future.

Unit tests were added to cover the new parsing, and to peform
integration testing with the command line tool.

Unit tests pass on Python 2.7 and 3.x.

Changes between revision 1 and 2

orig
1
2
3

Commits

Summary ID Author
Update pycodestyle for new tool support and more reliable output parsing.
This updates `PycodestyleTool` to subclass the newer `BaseTool`, and to use the newer features it offers (dependencies, improved centralized base command building, and standardized error code/column output). The output from `pycodestyle` is now explicitly set, so we won't be susceptible to any changes in `pycodestyle` in the future. Unit tests were added to cover the new parsing.
7ae158b6d6bfca4261d7343e440b33e1c653ba8a Christian Hammond
Update pycodestyle for new tool support and more reliable output parsing.
This updates `PycodestyleTool` to subclass the newer `BaseTool`, and to use the newer features it offers (dependencies, improved centralized base command building, and standardized error code/column output). The output from `pycodestyle` is now explicitly set, so we won't be susceptible to any changes in `pycodestyle` in the future. Unit tests were added to cover the new parsing, and to peform integration testing with the command line tool.
c6969ad07ef57b9608ebc3539dc03931843c9b42 Christian Hammond
bot/reviewbot/tools/pycodestyle.py
bot/reviewbot/tools/tests/test_pycodestyle.py
Loading...