pycodestyle icon indicating copy to clipboard operation
pycodestyle copied to clipboard

BaseReport Messages Include Error Row and Column Info

Open astro-josh opened this issue 6 years ago • 0 comments

BaseReport (used when quiet option is specified) does not include row and column numbers or other useful error info. Being able to access this info even when quiet mode is enabled may be useful for some.

UseCase: User does not want the pep8 check error printed to stdout so they enable quiet mode. User may still want to retrieve errors from BaseReport messages within a python script that checks jupyter notebook code cells for pep8 errors and generate reports for CI.

Changes:

  • Updated base report messages to a list instead of a dictionary. Stores tuples for error info.
  • Updated methods to print and get statistics fro BaseReport to work with new messages format.
  • Updated test_own_dog_food unit test to verify assertion on list of tuple instead of dictionary.

astro-josh avatar Mar 06 '19 17:03 astro-josh