[Python] Pylint error disappear after opening file

Discussão em 'Python' iniciado por Stack, Maio 6, 2025.

  1. Stack

    Stack Membro Participativo

    My pylint is in a venv and it shows error in the problem tab, but whenever I click on the problem to look at it, it will disappear after 1 sec. I'm working in a codespace.

    Here's my settings.json:

    {
    "azureFunctions.deploySubpath": "functions",
    "azureFunctions.scmDoBuildDuringDeployment": true,
    "azureFunctions.pythonVenv": "venv",
    "azureFunctions.projectLanguage": "Python",
    "azureFunctions.projectRuntime": "~4",
    "debug.internalConsoleOptions": "neverOpen",
    "azureFunctions.projectLanguageModel": 2,


    "python.testing.pytestArgs": [
    "./functions/classes/",
    "./functions/tests/",
    "--cov=./",
    "--cov-report=xml:./coverage.xml",
    "./test_input/"
    ],

    "python.testing.pytestEnabled": true,
    "python.testing.unittestEnabled": false,
    // Load environment variables from .env file (CLIENT_ID, TENANT_ID)
    "python.envFile": "${workspaceFolder}/.env",
    // Explicitly tell VS Code to use venv's Python interpreter
    "python.defaultInterpreterPath": "functions/venv/bin/python",

    }

    Continue reading...

Compartilhe esta Página