Monday, 9 February 2026

vs code setting to ignore pylance errors in django

 vscode settings

{
    // Kiro configuration
    "kiro.specsPath": "test/.kiro/specs",
    "kiro.workspaceRoot": "${workspaceFolder}",
   
    // Python configuration
    "python.defaultInterpreterPath": "${workspaceFolder}/venv/Scripts/python.exe",
   
    // File associations
    "files.associations": {
        "*.md": "markdown",
        "*.py": "python"
    },
   
    // Editor settings
    "editor.formatOnSave": false,
    "editor.tabSize": 4,
    "editor.semanticHighlighting.enabled": true,
   
    // Python syntax highlighting
    "python.analysis.typeCheckingMode": "basic",
    "python.languageServer": "Pylance",
   
    "python.analysis.diagnosticSeverityOverrides": {
        "reportAttributeAccessIssue": "none",
    "reportCallIssue": "none",
    "reportGeneralTypeIssues": "none",
    "reportArgumentType": "none",
    "reportOptionalMemberAccess": "none",
    "reportOptionalSubscript": "none",
    },
   

    // Syntax highlighting
    "editor.tokenColorCustomizations": {
        "textMateRules": [
            {
                "scope": "entity.name.type.class.python",
                "settings": {
                    "foreground": "#4EC9B0"
                }
            },
            {
                "scope": "entity.name.function.python",
                "settings": {
                    "foreground": "#DCDCAA"
                }
            },
            {
                "scope": "variable.parameter.python",
                "settings": {
                    "foreground": "#9CDCFE"
                }
            }
        ]
    },
   
    // Files to exclude from search
    "search.exclude": {
        "**/venv": true,
        "**/__pycache__": true,
        "**/*.pyc": true,
        "**/node_modules": true
    },
    "python.linting.pylintEnabled": true,
    "python.linting.enabled": true
   
   
}