Split up extensions/hooks.py

Review Request #12837 — Created Feb. 23, 2023 and submitted

david
Review Board
release-6.x
reviewboard

hooks.py was getting very large and unwieldy. This change splits it up
into a bunch of individual files, with an index for forwarding
imports.

This does not make any changes to the hook implementations except for
adding a couple is not None assertions to satisfy static type
checkers. I'm planning on following this up later with a change to add
typing to these.

  • Ran unit tests.
  • Built codebase docs and checked output.
Summary
Split up extensions/hooks.py
Description From Last Updated

Sorry, I know there's a lot of files, but can you add a from __future__ import annotations to any of …

chipx86chipx86

line too long (86 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (98 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (82 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (86 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (98 > 79 characters) Column: 80 Error code: E501

reviewbotreviewbot

line too long (82 > 79 characters) Column: 80 Error code: E501

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

flake8

chipx86
  1. 
      
  2. Sorry, I know there's a lot of files, but can you add a from __future__ import annotations to any of these that use type annotations?

    1. I'm going to just add it to everything because we will eventually add annotations to all this.

  3. 
      
david
Review request changed

Checks run (1 failed, 1 succeeded)

flake8 failed.
JSHint passed.

flake8

maubin
  1. Ship It!
  2. 
      
david
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-6.x (4b1ad72)
Loading...