Set up pipenv

This commit is contained in:
Jeremy Dormitzer 2021-04-07 16:55:14 -04:00
parent 8235d8d0ae
commit 3d10c8f159
4 changed files with 13 additions and 5 deletions

View File

@ -150,7 +150,7 @@
:cwd "~/lola/core-services/lola_server" :cwd "~/lola/core-services/lola_server"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/lola_server/.env")) "~/lola/core-services/lola_server/.env"))
(prodigy-define-service (prodigy-define-service
@ -161,7 +161,7 @@
:cwd "~/lola/core-services/lola_server" :cwd "~/lola/core-services/lola_server"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/lola_server/.env")) "~/lola/core-services/lola_server/.env"))
(prodigy-define-service (prodigy-define-service
@ -176,7 +176,7 @@
:inhibit-process-filter t :inhibit-process-filter t
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/travel_service/.env")) "~/lola/core-services/travel_service/.env"))
(prodigy-define-service (prodigy-define-service
@ -195,7 +195,7 @@
:cwd "~/lola/core-services/travel_service" :cwd "~/lola/core-services/travel_service"
:stop-signal 'int :stop-signal 'int
:truncate-output t :truncate-output t
:init-async (python-service-setup "~/.pyenv/versions/core-services" :init-async (python-service-setup "~/lola/core-services/.venv"
"~/lola/core-services/travel_service/.env")) "~/lola/core-services/travel_service/.env"))
(prodigy-define-service (prodigy-define-service

View File

@ -65,6 +65,11 @@
:custom :custom
(pyenv-show-active-python-in-modeline nil)) (pyenv-show-active-python-in-modeline nil))
;; A pipenv integration
(use-package pipenv
:defer 2
:hook (python-mode . pipenv-mode))
;; LSP using Microsoft's pyright language server ;; LSP using Microsoft's pyright language server
(use-package lsp-pyright (use-package lsp-pyright
:hook (python-mode . (lambda () :hook (python-mode . (lambda ()

View File

@ -19,3 +19,6 @@ if [ -d /Applications/Postgres.app ];
then then
path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path) path=(/Applications/Postgres.app/Contents/Versions/latest/bin $path)
fi fi
export PIPENV_MAX_DEPTH=20
export PIPENV_VENV_IN_PROJECT=yes

View File

@ -66,7 +66,7 @@ ZSH_THEME="typewritten"
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse) # Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup. # Add wisely, as too many plugins slow down shell startup.
plugins=(git direnv pyenv npm nvm) plugins=(git direnv pyenv pipenv npm nvm)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh