diff options
author | Griffin Smith <root@gws.fyi> | 2020-05-27T13·53-0400 |
---|---|---|
committer | Griffin Smith <root@gws.fyi> | 2020-05-27T13·53-0400 |
commit | d13ef4080d1eb1fa53ba4f52bf72c0d37c9ca20e (patch) | |
tree | 680f97dfa9e17932eab7d467af9e07e427877003 /home/modules | |
parent | ef2f6f32c11f2a976595b85745071357aa624a52 (diff) |
git filter to black from 100chars to 80chars
Diffstat (limited to 'home/modules')
-rw-r--r-- | home/modules/development/urbint.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/home/modules/development/urbint.nix b/home/modules/development/urbint.nix index 2844b0dbf1c4..4bf39b656f58 100644 --- a/home/modules/development/urbint.nix +++ b/home/modules/development/urbint.nix @@ -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 = { |