Commits

Toby Davies committed 3aa186e

make pylint errors first, with sane line lengths

  • Participants
  • Parent commits 7bd0c85

Comments (0)

Files changed (3)

.xmonad/xmonad.hs

 newKeys x = M.union (keys defaultConfig x) (mkKeymap x myKeys)
 myKeys = [
   ("M1-<F4>", kill),
-  ("M-x", spawn "sensible-editor"),
+  ("M-x", spawn "visit"),
   ("M-z", safeSpawn "zsh" ["-c", "sensible-browser"]),
   ("M-0", spawn "notify-send \"`date '+%I:%M %p %A'`\" \"`date '+%Y-%m-%d'`\""),
   --  ("M-S-0", spawn "notify-send \"`date '+%A %Y-%m-%d %T'`\" \"`cal`\""),
 
 export _JAVA_AWT_WM_NONREPARENTING=1
 
+###Workbench stuff
+export GUROBI_HOME="/opt/gurobi400/linux64"
+export PATH="${PATH}:${GUROBI_HOME}/bin"
+export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${GUROBI_HOME}/lib"
+###
+
 if [[ -n "$DISPLAY" ]]; then
     XDIMS=($(xdpyinfo -display $DISPLAY | grep dimensions | sed 's/^[^0-9]*\([0-9]*\)x\([0-9]*\)\s*pixels.*/\1 \2/'))
 fi
 #!/usr/bin/zsh
+pylint -d W0142 --max-line-length 125 "$1" | sed 's|^\([^:]*\):\([0-9]*\)|'"$1"':\2:\1|'
 pyflakes "$1"
-pep8 --ignore=E221,E701,E202 --repeat "$1"
-pylint "$1"
+pep8 --ignore=E225,E501 --repeat "$1"
 true