Skip to content

Commit

Permalink
Set VSCode to format (black and isort) on file save (run-llama#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
Disiok authored Jan 26, 2023
1 parent 5c3a019 commit af20721
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.vscode/
.DS_Store
# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down Expand Up @@ -132,4 +131,4 @@ dmypy.json
.pyre/

# Jetbrains
.idea
.idea
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.formatting.provider": "black",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true,
},
}

0 comments on commit af20721

Please sign in to comment.