Modernize reviewbot.processing.

Review Request #14317 — Created Jan. 30, 2025 and submitted

Information

ReviewBot
master

Reviewers

This change adds types and fixes up various style issues in the
reviewbot.processing module.

Ran unit tests.

Summary ID
Modernize reviewbot.processing.
This change adds types and fixes up various style issues in the reviewbot.processing module. Testing Done: Ran unit tests.
pppryrptttrqlsrlwyqozkqsuzwtlmls
Description From Last Updated

too many blank lines (3) Column: 1 Error code: E303

reviewbotreviewbot

I feel like we should maybe use a BaseCommentData as the parent class, since diff comments are not a type …

chipx86chipx86

Can you use :file: here? Or, maybe better, :py:mod: with a module path, since the latter's linkable in docs?

chipx86chipx86

Trailing ) should be aligned with the variable, like a dict or list.

chipx86chipx86
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

david
chipx86
  1. Nice, this is a satisfying cleanup. Just a few nits.

  2. bot/reviewbot/processing/review.py (Diff revision 2)
     
     
    Show all issues

    I feel like we should maybe use a BaseCommentData as the parent class, since diff comments are not a type of general comment.

  3. bot/reviewbot/processing/review.py (Diff revision 2)
     
     
    Show all issues

    Can you use :file: here? Or, maybe better, :py:mod: with a module path, since the latter's linkable in docs?

  4. bot/reviewbot/processing/review.py (Diff revision 2)
     
     
     
     
    Show all issues

    Trailing ) should be aligned with the variable, like a dict or list.

  5. 
      
david
chipx86
  1. Ship It!
  2. 
      
maubin
  1. Ship It!
  2. 
      
david
Review request changed
Status:
Completed
Change Summary:
Pushed to master (f97db4d)