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

Expand environment variables #1137

Open
StabbarN opened this issue Mar 16, 2025 · 2 comments
Open

Expand environment variables #1137

StabbarN opened this issue Mar 16, 2025 · 2 comments
Labels
config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it

Comments

@StabbarN
Copy link

StabbarN commented Mar 16, 2025

Description

I need to set a value in include from an environment variable in pyproject.toml:

[tool.basedpyright]
include = [
    "$ENV_VAR/**",
    ...
]

export function resolvePathWithEnvVariables(
is used by
serverSettings.pythonPath = resolvePathWithEnvVariables(workspace, pythonPath, workspaces);
. I suggest it should be used for include values as well.

Maybe this is something that should be implemented in pyright?

@StabbarN
Copy link
Author

Just found microsoft/pyright#4547

@DetachHead DetachHead added rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) labels Mar 16, 2025
@DetachHead
Copy link
Owner

im not opposed to this idea but curious as to what your use case is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config issues relating to config (pyproject.toml, pyrightconfig.json, LSP config or vscode extension) rejected upstream also a bug in pyright/pylance or feature that isn't in pyright/pylance - they refused to address it
Projects
None yet
Development

No branches or pull requests

2 participants