79521499

Date: 2025-03-19 22:24:58
Score: 2
Natty:
Report link

Solved it simply by just doing:

res = subprocess.run(['git', 'diff', '--cached', '--name-only'], text=True, capture_output=True, check=True)
lines_to_update = res.stdout.strip().split('\n')

It does what I want but still very confused why pre-commit just do not support this out of the box already.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Salviati