about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2020-05-27T13·53-0400
committerGriffin Smith <root@gws.fyi>2020-05-27T13·53-0400
commitd13ef4080d1eb1fa53ba4f52bf72c0d37c9ca20e (patch)
tree680f97dfa9e17932eab7d467af9e07e427877003
parentef2f6f32c11f2a976595b85745071357aa624a52 (diff)
git filter to black from 100chars to 80chars
-rw-r--r--home/modules/development/urbint.nix7
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 = {