diff --git a/.vscode/extensions.json b/.vscode/extensions.json index d69d8bab..b250fe1b 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,9 +1,11 @@ { "recommendations": [ + "charliermarsh.ruff", "davidanson.vscode-markdownlint", "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/.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 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