Update hooks.py

Added --diff-filter to ignore deleted files.
Upgrade mccabe.