Skip to content

Commit b4bb55b

Browse files
committed
remove black as the default formatter, use ruff instead
1 parent da20524 commit b4bb55b

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

.devcontainer/devcontainer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"ms-python.python",
1111
"ms-python.vscode-pylance",
1212
"ms-python.pylint",
13-
"ms-python.black-formatter",
1413
"njpwerner.autodocstring",
1514
"charliermarsh.ruff",
1615
"mhutchie.git-graph",
@@ -24,8 +23,10 @@
2423
},
2524
//docker in docker is included in the pixi devcontainer example, but disabling for the moment due to security issues
2625
// "features": {
27-
// "ghcr.io/devcontainers/features/docker-in-docker:2": {}
28-
// },
29-
"mounts": ["source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"],
30-
"postCreateCommand": "sudo chown vscode .pixi && pixi install"
31-
}
26+
// "ghcr.io/devcontainers/features/docker-in-docker:2": {}
27+
// },
28+
"mounts": [
29+
"source=${localWorkspaceFolderBasename}-pixi,target=${containerWorkspaceFolder}/.pixi,type=volume"
30+
],
31+
"postCreateCommand": "sudo chown vscode .pixi && pixi install"
32+
}

.vscode/extensions.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,12 @@
33
"ms-python.python",
44
"ms-python.vscode-pylance",
55
"ms-python.pylint",
6-
"ms-python.black-formatter",
76
"njpwerner.autodocstring",
87
"charliermarsh.ruff",
98
"mhutchie.git-graph",
10-
"eamodio.gitlens",
119
"tamasfe.even-better-toml",
12-
"Codium.codium",
1310
"ms-azuretools.vscode-docker",
1411
"ryanluker.vscode-coverage-gutters",
1512
"jjjermiah.pixi-vscode"
1613
]
17-
}
14+
}

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"python.testing.unittestEnabled": false,
44
"python.testing.pytestEnabled": true,
55
"[python]": {
6-
"editor.defaultFormatter": "ms-python.black-formatter",
6+
"editor.defaultFormatter": "charliermarsh.ruff",
77
"editor.formatOnSave": true,
88
},
99
"files.exclude": {
1010
"**/__pycache__/**": true,
1111
"/home/vscode/.local/lib/python3.10/site-packages/python_template/**": true
1212
},
1313
"python.analysis.autoImportCompletions": false //vscode gets it wrong more than right and mostly gets in the way
14-
}
14+
}

0 commit comments

Comments
 (0)