Skip to content

Commit 59e4edc

Browse files
committed
.vscode/settings.json: enable formatonsave and add black path
1 parent a21100d commit 59e4edc

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.vscode/settings.json

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,22 @@
88
],
99
"python.testing.pytestEnabled": true,
1010
"python.testing.pytestPath": "${workspaceFolder}/.venv/bin/pytest",
11+
"editor.formatOnSave": true,
1112
"python.formatting.provider": "black",
12-
"python.formatting.blackArgs": ["--line-length", "120", "--safe"],
13+
"python.formatting.blackPath": "${workspaceFolder}/.venv/bin/black",
14+
"python.formatting.blackArgs": [
15+
"--line-length",
16+
"120",
17+
"--safe"
18+
],
1319
"python.linting.mypyEnabled": true,
1420
"python.linting.mypyPath": "${workspaceFolder}/.venv/bin/mypy",
15-
"isort.args": ["--force-single-line-imports", "--profile", "black"]
21+
"isort.args": [
22+
"--force-single-line-imports",
23+
"--profile",
24+
"black"
25+
],
26+
"files.trimTrailingWhitespace": true,
27+
"json.format.enable": true,
28+
"files.insertFinalNewline": true,
1629
}

0 commit comments

Comments
 (0)