Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pipenv: Ignore additional pipenv output #41

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pet.el
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ Selects a virtualenv in the follow order:
(default-directory (file-name-directory (pet-pipfile-path))))
(condition-case err
(with-temp-buffer
(let ((exit-code (process-file program nil t nil "--venv"))
(let ((exit-code (process-file program nil '(t nil) nil "--quiet" "--venv"))
(output (string-trim (buffer-string))))
(if (zerop exit-code)
output
Expand Down
2 changes: 1 addition & 1 deletion test/pet-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@
(spy-on 'call-process :and-call-fake (lambda (&rest _) (insert pipenv-virtualenv) 0))
(expect (pet-virtualenv-root) :to-equal pipenv-virtualenv)
(expect (assoc-default project-root pet-project-virtualenv-cache) :to-equal pipenv-virtualenv)
(expect 'call-process :to-have-been-called-with pipenv-path nil t nil "--venv"))
(expect 'call-process :to-have-been-called-with pipenv-path nil '(t nil) nil "--quiet" "--venv"))

(it "should return the absolute path of the `.venv' or `venv' directory in a project"
(spy-on 'pet-use-conda-p :and-return-value nil)
Expand Down
Loading