Skip to content

Need a way to find tools (linters, formatters) via PATH #4922

@pfmoore

Description

@pfmoore

Unless I'm misunderstanding something, if I enable a linter like flake8, VS Code expects it to be installed in my Python environment (and specifically, if I don't set Flake8Path in my settings, that's where the extension will look).

I don't install tools like flake8 or black under my project - rather, I have a separate installation using a tool-specific virtualenv (essentially using a mechanism like pipx to manage my tools, although I actually use a custom solution). So I have flake8 and black commands on my PATH.

If I want to use my globally-installed tools, I appear to have to specify the exact path to them in my VS Code settings - which is not ideal, as the whole point of installing them centrally is that no other tools have to know where they are located, they can just access them via PATH. As things stand, if I move my tool directory, my VS Code config breaks.

Please provide a way to tell VS Code to search PATH for tool locations. Even if it's not the default, and I need to check something that says "search for flake8 on PATH", etc, that would at least allow me to make my VS Code configuration portable.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions