File tree Expand file tree Collapse file tree 2 files changed +18
-7
lines changed
Expand file tree Collapse file tree 2 files changed +18
-7
lines changed Original file line number Diff line number Diff line change 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}
Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments