microsoft / microsoft/vscode-flake8

Add `VIRTUENV_BIN` to the list of supported predefined variables to resolve linter settings

Open
#92 11 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature-request needs community feedback
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.