File tree Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Expand file tree Collapse file tree 2 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 2
2
{
3
3
// See more at https://go.microsoft.com/fwlink/?LinkId=827846
4
4
"recommendations" : [
5
+ " charliermarsh.ruff" ,
5
6
" ms-python.python" ,
6
7
" ms-python.vscode-pylance" ,
7
8
" redhat.vscode-yaml"
Original file line number Diff line number Diff line change 1
1
// -*- mode: jsonc -*-
2
2
{
3
- "python.pythonPath" : " .venv/bin/python" ,
4
- // Formatters
5
- "python.formatting.provider" : " black" ,
6
- "editor.formatOnSave" : true ,
7
- "editor.codeActionsOnSave" : {
8
- "source.organizeImports" : true // isort
3
+ // Linting/formatting
4
+ "[python]" : {
5
+ "editor.defaultFormatter" : " charliermarsh.ruff" ,
6
+ "editor.formatOnSave" : true ,
7
+ "editor.codeActionsOnSave" : {
8
+ "source.fixAll" : true ,
9
+ "source.organizeImports" : true
10
+ }
9
11
},
10
- // Linters
11
- "python.linting.enabled" : true ,
12
- "python.linting.pylintEnabled" : false ,
13
- "python.linting.flake8Enabled" : true ,
14
- "python.linting.flake8Path" : " pflake8" ,
15
- "python.linting.mypyEnabled" : true ,
16
12
// Testing
17
- "python.testing.pytestEnabled" : true
13
+ "python.testing.pytestEnabled" : true ,
14
+ // Typechecking
15
+ "python.analysis.autoImportCompletions" : true ,
16
+ "python.analysis.typeCheckingMode" : " basic"
18
17
}
You can’t perform that action at this time.
0 commit comments