Skip to content

Commit

Permalink
Add editor config for VS Code
Browse files Browse the repository at this point in the history
  • Loading branch information
hypergonial committed Dec 18, 2023
1 parent d6f9cd0 commit 0f686c2
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,5 @@ db/backup/
# Dolphin directory meta files
.directory

# VS Code
.vscode/

# ruff
.ruff_cache/
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"ms-python.python",
"charliermarsh.ruff",
"njpwerner.autodocstring",
"EditorConfig.EditorConfig",
"ExodiusStudios.comment-anchors",
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"python.analysis.autoImportCompletions": true,
"editor.formatOnSave": true,
"[python]": {
"editor.defaultFormatter": "charliermarsh.ruff"
},
"autoDocstring.docstringFormat": "numpy",
}
17 changes: 17 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -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
}
}
]
}

0 comments on commit 0f686c2

Please sign in to comment.