Skip to content

Commit 0f686c2

Browse files
committed
Add editor config for VS Code
1 parent d6f9cd0 commit 0f686c2

File tree

6 files changed

+44
-3
lines changed

6 files changed

+44
-3
lines changed

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* text=auto eol=lf

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,5 @@ db/backup/
138138
# Dolphin directory meta files
139139
.directory
140140

141-
# VS Code
142-
.vscode/
143-
144141
# ruff
145142
.ruff_cache/

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"ms-python.python",
4+
"charliermarsh.ruff",
5+
"njpwerner.autodocstring",
6+
"EditorConfig.EditorConfig",
7+
"ExodiusStudios.comment-anchors",
8+
]
9+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"python.analysis.autoImportCompletions": true,
3+
"editor.formatOnSave": true,
4+
"[python]": {
5+
"editor.defaultFormatter": "charliermarsh.ruff"
6+
},
7+
"autoDocstring.docstringFormat": "numpy",
8+
}

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the tasks.json format
4+
// Use Ctrl+Shift+B or the command palette to run nox.
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "Run nox",
9+
"type": "shell",
10+
"command": "nox",
11+
"group": {
12+
"kind": "build",
13+
"isDefault": true
14+
}
15+
}
16+
]
17+
}

0 commit comments

Comments
 (0)