git-hooks.nix
git-hooks.nix copied to clipboard
feat: introduce black flags
This PR adds setting.black.flags making the black hook more configurable. Default is no flags.
All options are listed here, it is documented in the nix option.
I first thought about mirroring all options but this way is more flexible imho. My primary intention is to support --experimental-string-processing with this (which will change to --preview --enable-unstable-feature string_processing in black v24, see the change logs, another advantage of a generic flags argument). Of course, further options for specific arguments can be added later.