git filter to black from 100chars to 80chars
This commit is contained in:
parent
ef2f6f32c1
commit
d13ef4080d
1 changed files with 7 additions and 0 deletions
|
@ -38,6 +38,13 @@ in
|
|||
};
|
||||
|
||||
programs.git = {
|
||||
extraConfig.filter.black100to80 =
|
||||
let inherit (pkgs.python36Packages) black; in {
|
||||
clean = "${black}/bin/black --target-version py36 -l 100 -";
|
||||
smudge = "${black}/bin/black --target-version py36 -l 80 -";
|
||||
};
|
||||
|
||||
|
||||
includes = [{
|
||||
condition = "gitdir:~/code/urb/";
|
||||
contents = {
|
||||
|
|
Loading…
Reference in a new issue