microsoft / vscode-flake8

Linting support for python using the flake8 library.
https://marketplace.visualstudio.com/items?itemName=ms-python.flake8
MIT License
40 stars 30 forks source link

unable to disable flake8 #311

Closed LeanderK closed 4 months ago

LeanderK commented 4 months ago

I want to disable flake8 for a project. I added "flake8.enabled" : false, to my setting.json. But vscode complains about this setting being unknown and also my project is still linted by flake8!

eleanorjboyd commented 4 months ago

Hi! Can you check both your user and workspace settings and send anything over related to either of those? It could be a conflict between settings across different levels.

LeanderK commented 4 months ago

thank you for the quick response!

workspace setting:

{
    "python.analysis.extraPaths": [
        "./pyxadd"
    ],
    "python.analysis.typeCheckingMode": "basic",
    "python.analysis.autoImportCompletions": true,
    "files.exclude": {
        "demo/data/*": true
    },
    "flake8.enabled" : false,
}

flake8.enabled has warning: Unknown Configuration Setting. Autocomplete gives me completions for the others (args, cwd etc., but not enabled!)

I don't have any other flake8 settings set

karthiknadig commented 4 months ago

@LeanderK Are you using stable or pre-release version? the enable setting is in pre-release.

LeanderK commented 4 months ago

ah, I just installed it from the marketplace. It's not the pre-relase.

This fixed it, thanks!