Skip to content

Commit

Permalink
style: Change settings to apply Python isort
Browse files Browse the repository at this point in the history
[#62] Refer to GitHub issue…

The purpose of this update is to fix VSCode setting in order to apply
Python isort properly.
isort will now be applied automatically on save, with its profile
setting based on Black.
  • Loading branch information
yunchae-kim committed Sep 27, 2023
1 parent e0c668f commit 4642e13
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,12 @@
// Python formatter: PEP8
"[python]": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-python.autopep8"
"editor.defaultFormatter": "ms-python.autopep8",
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
},
"isort.args": ["--profile", "black"],

// Python testing: PyTest
"python.testing.pytestArgs": ["tests"],
Expand Down

0 comments on commit 4642e13

Please sign in to comment.