Skip to content

How to set the python version in the LSP configuration? #15331

Closed Answered by dhruvmanila
charlesnicholson asked this question in Q&A
Discussion options

You must be logged in to vote

We've currently only exposed a certain subset of settings which can be directly altered from an editor, target-version is not one of them.

We have a ruff.toml file in our repository but because we support multiple versions of Python that share this config file, I don't think I can can put py313 there specifically.

Can you say more about this to help me understand why it isn't possible to provide the target version in the config file? Would specifying the minimum supported Python version as the target version help?

Alternatively, you could have a separate config file specifically for editor context which only specifies the target-version and provide that in configuration and utilize conf…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by charlesnicholson
Comment options

You must be logged in to vote
1 reply
@dhruvmanila
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants