progress
This commit is contained in:
Vendored
+17
-103
@@ -1,112 +1,26 @@
|
||||
{
|
||||
"PythonVersion": "3.12",
|
||||
"[python]": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter"
|
||||
},
|
||||
// ===========================================================
|
||||
"workbench.activityBar.orientation": "vertical",
|
||||
// ===========================================================
|
||||
|
||||
// "markdown.styles": [
|
||||
// "/home/oleg/develop/cvtt2/.vscode/light-theme.css"
|
||||
// ],
|
||||
"markdown.preview.background": "#ffffff",
|
||||
"markdown.preview.textEditorTheme": "light",
|
||||
"markdown-pdf.styles": [
|
||||
"/home/oleg/develop/cvtt2/.vscode/light-theme.css"
|
||||
],
|
||||
"editor.detectIndentation": false,
|
||||
// Configure editor settings to be overridden for [yaml] language.
|
||||
"[yaml]": {
|
||||
"editor.insertSpaces": true,
|
||||
"editor.tabSize": 4,
|
||||
},
|
||||
"pylint.args": [
|
||||
"--disable=missing-docstring"
|
||||
, "--disable=invalid-name"
|
||||
, "--disable=too-few-public-methods"
|
||||
, "--disable=broad-exception-raised"
|
||||
, "--disable=broad-exception-caught"
|
||||
, "--disable=pointless-string-statement"
|
||||
, "--disable=unused-argument"
|
||||
, "--disable=line-too-long"
|
||||
, "--disable=import-outside-toplevel"
|
||||
, "--disable=fixme"
|
||||
, "--disable=protected-access"
|
||||
, "--disable=logging-fstring-interpolation"
|
||||
],
|
||||
|
||||
// ===== TESTING CONFIGURATION =====
|
||||
"python.testing.unittestEnabled": false,
|
||||
"python.testing.pytestEnabled": true,
|
||||
"python.testing.unittestEnabled": false,
|
||||
"python.testing.pytestArgs": [
|
||||
"-v",
|
||||
"--tb=short",
|
||||
"--disable-warnings"
|
||||
"unittests"
|
||||
],
|
||||
"python.testing.envVars": {
|
||||
"PYTHONPATH": "${workspaceFolder}/lib:${workspaceFolder}/.."
|
||||
},
|
||||
"python.testing.cwd": "${workspaceFolder}",
|
||||
"python.testing.autoTestDiscoverOnSaveEnabled": true,
|
||||
"python.testing.pytestPath": "/home/oleg/.pyenv/python3.12-venv/bin/pytest",
|
||||
"python.testing.promptToConfigure": false,
|
||||
"python.testing.pytest.enabled": true,
|
||||
|
||||
|
||||
// Python interpreter settings
|
||||
"python.defaultInterpreterPath": "/home/oleg/.pyenv/python3.12-venv/bin/python3.12",
|
||||
|
||||
// Environment variables for Python execution
|
||||
"python.envFile": "${workspaceFolder}/.vscode/.env",
|
||||
"python.terminal.activateEnvironment": false,
|
||||
"python.terminal.activateEnvInCurrentTerminal": false,
|
||||
|
||||
// Global environment variables for VS Code Python extension
|
||||
"terminal.integrated.env.linux": {
|
||||
"PYTHONPATH": "/home/oleg/develop/:${env:PYTHONPATH}"
|
||||
},
|
||||
|
||||
"pylint.enabled": true,
|
||||
"github.copilot.enable": false,
|
||||
"markdown.extension.print.theme": "dark",
|
||||
"python.defaultInterpreterPath": "/usr/bin/python3",
|
||||
"python.testing.pytestPath": "python3",
|
||||
"python.analysis.extraPaths": [
|
||||
"${workspaceFolder}/..",
|
||||
"${workspaceFolder}/lib"
|
||||
"${workspaceFolder}",
|
||||
"${workspaceFolder}/..",
|
||||
"${workspaceFolder}/unittests"
|
||||
],
|
||||
|
||||
// Try enabling regular Python language server alongside CursorPyright
|
||||
"python.languageServer": "None",
|
||||
"python.analysis.diagnosticMode": "workspace",
|
||||
"workbench.colorTheme": "Atom One Dark",
|
||||
"cursorpyright.analysis.enable": false,
|
||||
"cursorpyright.analysis.extraPaths": [
|
||||
"${workspaceFolder}/..",
|
||||
"${workspaceFolder}/lib"
|
||||
],
|
||||
|
||||
// Enable quick fixes for unused imports
|
||||
"python.analysis.autoImportCompletions": true,
|
||||
"python.analysis.fixAll": ["source.unusedImports"],
|
||||
"python.analysis.typeCheckingMode": "basic",
|
||||
|
||||
// Enable code actions for CursorPyright
|
||||
"cursorpyright.analysis.autoImportCompletions": true,
|
||||
"cursorpyright.analysis.typeCheckingMode": "off",
|
||||
"cursorpyright.reportUnusedImport": "warning",
|
||||
"cursorpyright.reportUnusedVariable": "warning",
|
||||
"cursorpyright.analysis.diagnosticMode": "workspace",
|
||||
|
||||
// Force enable code actions
|
||||
"editor.lightBulb.enabled": true,
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": "explicit",
|
||||
"source.fixAll": "explicit",
|
||||
"source.unusedImports": "explicit"
|
||||
"python.envFile": "${workspaceFolder}/.env",
|
||||
"python.testing.debugPort": 3000,
|
||||
"python.linting.enabled": true,
|
||||
"python.linting.pylintEnabled": false,
|
||||
"python.linting.mypyEnabled": true,
|
||||
"files.associations": {
|
||||
"*.py": "python"
|
||||
},
|
||||
|
||||
// Enable Python-specific code actions
|
||||
"python.analysis.completeFunctionParens": true,
|
||||
"python.analysis.addImport.exactMatchOnly": false,
|
||||
"workbench.tree.indent": 24,
|
||||
}
|
||||
"python.testing.promptToConfigure": false,
|
||||
"workbench.colorTheme": "Dracula Theme Soft"
|
||||
}
|
||||
Reference in New Issue
Block a user