From 0f686c2c83118c51ad0b36c5286acb211c8cce40 Mon Sep 17 00:00:00 2001 From: hypergonial <46067571+hypergonial@users.noreply.github.com> Date: Mon, 18 Dec 2023 01:40:41 +0100 Subject: [PATCH] Add editor config for VS Code --- .editorconfig | 9 +++++++++ .gitattributes | 1 + .gitignore | 3 --- .vscode/extensions.json | 9 +++++++++ .vscode/settings.json | 8 ++++++++ .vscode/tasks.json | 17 +++++++++++++++++ 6 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .editorconfig create mode 100644 .gitattributes create mode 100644 .vscode/extensions.json create mode 100644 .vscode/settings.json create mode 100644 .vscode/tasks.json diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..3c44241 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,9 @@ +root = true + +[*] +indent_style = space +indent_size = 4 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..6313b56 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto eol=lf diff --git a/.gitignore b/.gitignore index 6dba5cc..51d169a 100644 --- a/.gitignore +++ b/.gitignore @@ -138,8 +138,5 @@ db/backup/ # Dolphin directory meta files .directory -# VS Code -.vscode/ - # ruff .ruff_cache/ \ No newline at end of file diff --git a/.vscode/extensions.json b/.vscode/extensions.json new file mode 100644 index 0000000..67a9c38 --- /dev/null +++ b/.vscode/extensions.json @@ -0,0 +1,9 @@ +{ + "recommendations": [ + "ms-python.python", + "charliermarsh.ruff", + "njpwerner.autodocstring", + "EditorConfig.EditorConfig", + "ExodiusStudios.comment-anchors", + ] +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..52093c9 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "python.analysis.autoImportCompletions": true, + "editor.formatOnSave": true, + "[python]": { + "editor.defaultFormatter": "charliermarsh.ruff" + }, + "autoDocstring.docstringFormat": "numpy", +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..35db876 --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + // Use Ctrl+Shift+B or the command palette to run nox. + "version": "2.0.0", + "tasks": [ + { + "label": "Run nox", + "type": "shell", + "command": "nox", + "group": { + "kind": "build", + "isDefault": true + } + } + ] +} \ No newline at end of file