 	 (repo-venv (apply-partially #'s-contains? git-repo-name))
 	 (venvs-matched (-filter repo-venv venv-names)))
     (if (and (> 0 (length venvs-matched)) pyvenv-virtual-env)
-	(pyvenv-deactivate)
+        (pyvenv-deactivate)
       (pyvenv-workon (car venvs-matched)))))
 
 (provide 'pyautomagic)

		   ;; https://github.com/jorgenschaefer/elpy/issues/144
		   (equal path nil)))
      (save-excursion
	  (find-file-literally (magit-toplevel))
	  (if (equal path pyautomagic--default-flycheck-checker)
	      (pyautomagic--remember-flycheck-checker #'python-pyflakes)
	    (progn
	      (add-dir-local-variable
	       #'python-mode #'flycheck-flake8rc path)
	      (pyautomagic--remember-flycheck-checker #'python-flake8)))))))

(defvar pyvenv-virtual-env)


  "Return true if URL is a Pylons repository."
  (s-contains? "Pylons/" url))


(defun pyautomagic--activate-venv-safely (directory)
  "Use instead of pyvenv-activate to strip trailing slash from DIRECTORY."
