diff --git a/.vscode/settings.json b/.vscode/settings.json index bc2bba40c..012143ff0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,7 +19,12 @@ // ====== "[python]": { - "editor.formatOnSave": false + "editor.formatOnSave": false, + "editor.defaultFormatter": null + // "editor.codeActionsOnSave": { + // "source.fixAll": "explicit", + // "source.organizeImports": "explicit" + // } }, "python.analysis.diagnosticSeverityOverrides": { @@ -160,43 +165,22 @@ // RUFF // ==== + // marketplace.visualstudio.com/items?itemName=charliermarsh.ruff + // docs.astral.sh/ruff/editors/settings - // Additional command-line arguments to pass to ruff check, e.g., "args": ["--config=/path/to/pyproject.toml"]. - // Supports a subset of Ruff's command-line arguments, ignoring those that are required to operate the LSP, - // like --force-exclude and --verbose. - "ruff.lint.args": [ - ], - - // Path to a custom ruff executable, e.g., ["/path/to/ruff"]. - "ruff.path": [], - - // Path to a Python interpreter to use to run the linter server. - "ruff.interpreter": [], - - // Strategy for loading the ruff executable. - // fromEnvironment picks up Ruff from the environment, falling back to the bundled version if needed. - // useBundled uses the version bundled with the extension. - "ruff.importStrategy": "fromEnvironment", - - // Run Ruff on every keystroke (onType) or on save (onSave). - "ruff.lint.run": "onSave", - - // Whether to enable the Ruff extension. - // Modifying this setting requires restarting VS Code to take effect. - "ruff.enable": true, - - // Whether to register Ruff as capable of handling source.organizeImports actions. - "ruff.organizeImports": true, + "ruff.nativeServer": "on", - // Whether to register Ruff as capable of handling source.fixAll actions. - "ruff.fixAll": false, + "ruff.configuration": ".ruff.toml", - // Whether to display Quick Fix actions to autofix violations. - "ruff.codeAction.fixViolation.enable": true, + "ruff.lineLength": 120, + "ruff.organizeImports": false - // Whether to display Quick Fix actions to disable rules via noqa suppression comments. - "ruff.codeAction.disableRuleComment.enable": true, + // Python-based Ruff server only + // ----------------------------- + // "ruff.importStrategy": "fromEnvironment", + // "ruff.interpreter": [], + // "ruff.path": [], - // Setting to control when a notification is shown: off, onError, onWarning, always. - "ruff.showNotification": "onWarning" + // "ruff.lint.args": [], + // "ruff.format.args": [], }