pyproject-flake8 icon indicating copy to clipboard operation
pyproject-flake8 copied to clipboard

Document "integration" with vscode flake8 plugin

Open MatrixManAtYrService opened this issue 2 years ago • 2 comments

Perhaps this should have been obvious, but you can tell the vscode flake8 plugin to call pflake8 by placing this in .vscode/settings.json (presuming that poetry creates venv's called .venv in your project root as it does for me).

{
    "flake8.importStrategy": "fromEnvironment",
    "flake8.path": [
        ".venv/bin/pflake8"
    ],
}

If you don't feel like putting this in the readme, even just having this closed issue lying around might be enough to make this solution searchable.

MatrixManAtYrService avatar Dec 16 '22 21:12 MatrixManAtYrService

It can certainly be added to the README, do you like to open a PR or should I just add it?

csachs avatar Dec 17 '22 15:12 csachs

I'll leave it to you to decide where it fits. "Anywhere, even in the issues comments" already scratches my itch and I'm not sure how far along the "integrations with particular editors" path you want to go.

I mean, pyproject-flake8 does its job (and very nicely!) so it wouldn't be unreasonable to be a bit standoffish about documenting things that are not pyproject-flake8 (e.g. vscode).

MatrixManAtYrService avatar Dec 19 '22 16:12 MatrixManAtYrService