microsoft / microsoft/vscode-flake8
Add `VIRTUENV_BIN` to the list of supported predefined variables to resolve linter settings
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 52
- Forks
- 34
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 5
Description
I am using `flakehell ` as the runner for `flake8` . I am able to configure it using
``` json
"python.linting.flake8Path": "~/.local/share/virtualenvs/proj/bin/flake8helled",
```
But I had to give the full path. It would be nice to have this variable to the list of predefined-variables. So it will work with different venvs and no need to change it every time.
So the above setting can be simplified like
``` json
"python.linting.flake8Path": "${VIRTUENV_BIN}/flake8helled",
```
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the predefined-variable handling and the code that resolves the flake8Path setting. Confirm how `${VIRTUENV_BIN}` should resolve for different virtual environments, then verify that the example path works without hard-coding the environment directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100