pyproject-flake8
pyproject-flake8 copied to clipboard
Document "integration" with vscode flake8 plugin
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.
It can certainly be added to the README, do you like to open a PR or should I just add it?
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).