From d13ef4080d1eb1fa53ba4f52bf72c0d37c9ca20e Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Wed, 27 May 2020 09:53:10 -0400 Subject: [PATCH] git filter to black from 100chars to 80chars --- home/modules/development/urbint.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/modules/development/urbint.nix b/home/modules/development/urbint.nix index 2844b0dbf..4bf39b656 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 = {