From 91ad2d7629c97c05d38daaa39406af4035d4661c Mon Sep 17 00:00:00 2001 From: Rickard Date: Sun, 4 Feb 2024 11:23:26 +0100 Subject: [PATCH 1/2] Fixed VS Code format on save --- .editorconfig | 3 +++ .gitignore | 1 - .vscode/extensions.json | 7 +++++++ .vscode/settings.json | 7 +++++++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .editorconfig create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..03490db50 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*] +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore index 46316e4b3..22f5a6cd6 100644 --- a/.gitignore +++ b/.gitignore @@ -154,4 +154,3 @@ dmypy.json dependencies cuda_build output/ -.vscode/* diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 000000000..fcae843c2 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,7 @@ +{ + "recommendations": [ + "ms-python.python", + "charliermarsh.ruff", + "twxs.cmake" + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 000000000..893ebb174 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "ruff.fixAll": true, + "ruff.lint.run": "onType", + "editor.codeActionsOnSave": { + "source.fixAll": "always" + } +} \ No newline at end of file From 94824334bab39f6206d6b8bd425b51f65445221e Mon Sep 17 00:00:00 2001 From: Rickard Date: Sun, 4 Feb 2024 11:35:23 +0100 Subject: [PATCH 2/2] Re-saved the json files using the new settings --- .vscode/extensions.json | 2 +- .vscode/settings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.vscode/extensions.json b/.vscode/extensions.json index fcae843c2..939843f43 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -4,4 +4,4 @@ "charliermarsh.ruff", "twxs.cmake" ] -} \ No newline at end of file +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 893ebb174..906f28588 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,4 +4,4 @@ "editor.codeActionsOnSave": { "source.fixAll": "always" } -} \ No newline at end of file +}