From 5253e8bf8b983e44db351d754fc98ad3f0f5beb0 Mon Sep 17 00:00:00 2001 From: "victor.linroth.sensmetry" Date: Wed, 22 Apr 2026 15:07:29 +0200 Subject: [PATCH 1/2] chore: add correct default formatters for Rust and Python to VS Code settings Signed-off-by: victor.linroth.sensmetry --- .vscode/extensions.json | 1 + .vscode/settings.json | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index d69d8bab..4ff22931 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,5 +1,6 @@ { "recommendations": [ + "charliermarsh.ruff", "davidanson.vscode-markdownlint", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", diff --git a/.vscode/settings.json b/.vscode/settings.json index f12ff70e..16324303 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,5 +19,11 @@ "werr", "wrapfs" ], - "editor.defaultFormatter": "esbenp.prettier-vscode" + "editor.defaultFormatter": "esbenp.prettier-vscode", + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff" + }, + "[rust]": { + "editor.defaultFormatter": "rust-lang.rust-analyzer" + } } \ No newline at end of file From 97436b32bccb699c81c3370e1f59a86f473ab7a6 Mon Sep 17 00:00:00 2001 From: "victor.linroth.sensmetry" Date: Wed, 22 Apr 2026 15:10:42 +0200 Subject: [PATCH 2/2] chore: add Ruff and Mypy to VS Code setup instructions Signed-off-by: victor.linroth.sensmetry --- .vscode/extensions.json | 1 + bindings/py/DEVELOPMENT.md | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 4ff22931..b250fe1b 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -5,6 +5,7 @@ "dbaeumer.vscode-eslint", "esbenp.prettier-vscode", "gruntfuggly.todo-tree", + "ms-python.mypy-type-checker", "ms-python.python", "rust-lang.rust-analyzer", "streetsidesoftware.code-spell-checker", diff --git a/bindings/py/DEVELOPMENT.md b/bindings/py/DEVELOPMENT.md index 69277584..529e727c 100644 --- a/bindings/py/DEVELOPMENT.md +++ b/bindings/py/DEVELOPMENT.md @@ -16,7 +16,8 @@ Python development as well. If using VS Code (or other compatible editor like e.g. Codium or Cursor) we recommended the official [Python](https://marketplace.visualstudio.com/items?itemName=ms-python.python) extension from Microsoft. This will also install the Pylance, Python Debugger -and Python Environments extensions. +and Python Environments extensions. For formatting and linting we use [Ruff](https://marketplace.visualstudio.com/items?itemName=charliermarsh.ruff) +and typechecking is done by [Mypy](https://marketplace.visualstudio.com/items?itemName=ms-python.mypy-type-checker). If your editor is having problems finding imports even after installing all dependencies (see below), you can try to go into the settings of the Python