Skip to content

Instantly share code, notes, and snippets.

@woochica
Created May 16, 2020 16:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save woochica/64273f3249eb9f18a506651f3bed014c to your computer and use it in GitHub Desktop.
Save woochica/64273f3249eb9f18a506651f3bed014c to your computer and use it in GitHub Desktop.
Emacs configuration for a Python project in OSX
;;; Directory Local Variables
;;; For more information see (info "(emacs) Directory Variables")
((python-mode .
((python-shell-virtualenv-root . "~/Library/Caches/pypoetry/virtualenvs")
(pyvenv-default-virtual-env-name . "~/Library/Caches/pypoetry/virtualenvs/bps-web-iZn3jUlQ-py3.8")
(pyvenv-workon . "bps-web-iZn3jUlQ-py3.8")
(python-shell-exec-path . ("/Users/apple/Dev/bps_web"))
(python-shell-extra-pythonpaths . ("/Users/apple/Dev/bps_web"))
;; Setting PYTHONPATH is needed otherwise Flycheck doesn't work properly
(eval . (setenv "PYTHONPATH" "/Users/apple/Dev/bps_web"))
(flycheck-python-mypy-executable . "~/Library/Caches/pypoetry/virtualenvs/bps-web-iZn3jUlQ-py3.8/bin/mypy")
(flycheck-python-flake8-executable . "~/Library/Caches/pypoetry/virtualenvs/bps-web-iZn3jUlQ-py3.8/bin/flake8")
)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment