Autopep8 from venv

87 views Asked by At

After the day 01/12 my autopep 8 / flake8 / mypy stoped working from VENV, any ideia how to configure this?

{
    "[python]": {
      "editor.defaultFormatter": "ms-python.python",
      "editor.tabSize": 4,
      "editor.insertSpaces": true,
      "editor.formatOnSave": true,
      "editor.codeActionsOnSave": {
        "source.fixAll": true,
        "source.fixAll.unusedImports": true,
        "source.organizeImports": true
      }
    },
    "python.languageServer": "Pylance",
    "python.formatting.autopep8Args": [
      "--indent-size=4",
      "--max-line-length=80"
      // "--ignore=E111"
    ],
    "python.linting.flake8Args": [
      // "--ignore=E111",
    ],
    "python.linting.flake8Enabled": true,
    "python.linting.mypyEnabled": true,
    // "python.defaultInterpreterPath": "./venv/scripts/python",
}

This is my configs of VSCode, im trying to use the "python.formatting.provider": "autopep8", but this dosn't work, and already tried to pass the autopep8.path and the python.pythonPath to locate them in the venv but still won't work

0

There are 0 answers