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

[WIP] Which executable? #1363

Closed
wants to merge 11 commits into from
Closed

[WIP] Which executable? #1363

wants to merge 11 commits into from

Conversation

kaste
Copy link
Contributor

@kaste kaste commented Apr 28, 2018

Expose get_executable() -> Optional[List[str]]
Factor linter.which_executable(str) -> Optional[List[str]]
Change signature of context_sensitive_executable_path as proposed in #1362

Fixes #1335
Fixes #1362

@braver
Copy link
Member

braver commented May 7, 2018

Works for me. Anything in particular I should test?

@braver
Copy link
Member

braver commented May 8, 2018

@kaste Wanna merge this?

@kaste
Copy link
Contributor Author

kaste commented May 8, 2018

Nope or not sure. Don't think it adds enough value right now. I have added several other commits on top of it on my computer. I want to get a clearer picture of the direction the API should go.

@braver
Copy link
Member

braver commented May 8, 2018

👍

@kaste kaste changed the title Which executable? [WIP] Which executable? May 28, 2018
BREAKING: make fn `(str) -> Optional[List[str]]`

`context_sensitive_executable_path` had a polymorphic signature in that
it also allowed the full `cmd` to be passed in. However all
implementations then only extracted `cmd[0]` and acted upon that.

Esp. for the new `which_executable` we want a simpler signature, so that
the user can just call e.g. `self.which_executable('mypy')`. We, of
course, could transform this internally to `['mypy']`, pass it down,
and transform it back to `'mypy'` in every `csep` implementation.
@kaste
Copy link
Contributor Author

kaste commented Apr 3, 2020

Bye 👋

@kaste kaste closed this Apr 3, 2020
@kaste kaste deleted the which-executable branch April 3, 2020 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants