From eb4f9563ccf6bd652f08246df6c2753207bf7e89 Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Sun, 26 Apr 2026 14:42:20 -0700 Subject: [PATCH] Little tweaks here to make sure formatting happens more automatically --- paperless-ngx.code-workspace | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/paperless-ngx.code-workspace b/paperless-ngx.code-workspace index 91020c66c..5326dbfce 100644 --- a/paperless-ngx.code-workspace +++ b/paperless-ngx.code-workspace @@ -30,11 +30,25 @@ "**/.idea": true, "**/.venv": true, "**/.coverage": true, - "**/coverage.json": true + "**/coverage.json": true, + "htmlcov/": true, + "coverage.xml": true, + "junit.xml": true }, - "python.defaultInterpreterPath": ".venv/bin/python3", + "python.languageServer": "Pylance", + "python.defaultInterpreterPath": "${workspaceFolder:paperless-ngx}/.venv/bin/python3", + "python.analysis.extraPaths": ["${workspaceFolder:paperless-ngx}/src"], "python.analysis.inlayHints.pytestParameters": true, "python.testing.pytestEnabled": true, + "python.testing.unittestEnabled": false, + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff", + "editor.formatOnSave": true, + "editor.codeActionsOnSave": { + "source.fixAll.ruff": "explicit", + "source.organizeImports.ruff": "explicit" + } + } }, "extensions": { "recommendations": ["ms-python.python", "charliermarsh.ruff", "editorconfig.editorconfig"],