Skip to content

Commit c28ec9d

Browse files
update VSCode settings (#1337)
1 parent e559fde commit c28ec9d

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

.vscode/extensions.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"recommendations": [
3-
"ms-python.python",
4-
"EditorConfig.editorconfig",
5-
"ms-python.flake8",
6-
"charliermarsh.ruff"
3+
"EditorConfig.editorconfig", // default
4+
"ms-python.python", // intellisense
5+
"ms-python.flake8", // linting
6+
"charliermarsh.ruff" // formatting
77
]
88
}

.vscode/settings.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,30 @@
44

55
"editor.renderWhitespace": "all",
66
"files.exclude": {
7-
"**/*.pyc": { "when": "$(basename).py" },
8-
"**/__pycache__": true
7+
"**/*.pyc": true,
8+
"**/__pycache__": true,
9+
".pytest_cache": true,
10+
".mypy_cache": true,
11+
".ruff_cache": true,
12+
".tox": true,
13+
"*.egg-info": true,
14+
"venv": true
915
},
16+
// uses default venv name from Makefile
17+
"python.defaultInterpreterPath": "./venv/bin/python",
1018

1119
// Formatting
1220
"editor.formatOnSave": true,
21+
"[python]": {
22+
"editor.defaultFormatter": "charliermarsh.ruff"
23+
},
1324

1425
// Tests
1526
"python.testing.unittestEnabled": false,
1627
"python.testing.pytestEnabled": true,
1728

1829
"python.terminal.activateEnvironment": true,
19-
"python.defaultInterpreterPath": "~/venv/bin/python3",
2030
"python.analysis.diagnosticMode": "workspace",
2131
"python.analysis.typeCheckingMode": "basic",
32+
"ruff.lint.enable": false // in favor of flake8
2233
}

0 commit comments

Comments
 (0)