alecthomas / voluptuous

CONTRIBUTIONS ONLY: Voluptuous, despite the name, is a Python data validation library.
https://pypi.org/project/voluptuous
BSD 3-Clause "New" or "Revised" License
1.81k stars 219 forks source link

Ignore styling-only commit in git blame #505

Closed antoni-szych-rtbhouse closed 7 months ago

antoni-szych-rtbhouse commented 7 months ago

As per discussion in https://github.com/alecthomas/voluptuous/pull/503#issuecomment-1857800717 this will cause the git history to "hide" the restyling commit in git blame / git annotate.

Demo: https://github.com/antoni-szych-rtbhouse/voluptuous/blame/master/voluptuous/humanize.py

image