Skip to content

Commit 99a2899

Browse files
authored
🧑‍💻 Dev: 更新过时的 devcontainer 配置 (#152)
1 parent 8ea3798 commit 99a2899

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.devcontainer/devcontainer.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
{
2-
"name": "Default Linux Universal",
3-
"image": "mcr.microsoft.com/devcontainers/universal:2-linux",
2+
"name": "Ubuntu",
3+
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
44
"features": {
5-
"ghcr.io/devcontainers-contrib/features/pdm:2": {}
5+
"ghcr.io/devcontainers-extra/features/pdm:2": {},
6+
"ghcr.io/meaningful-ooo/devcontainer-features/fish:2": {}
67
},
78
"postCreateCommand": "pdm config venv.in_project true && pdm config venv.with_pip true && pdm sync && pdm run pre-commit install && pdm run compile && yarn install",
89
"customizations": {
910
"vscode": {
1011
"settings": {
1112
"python.analysis.diagnosticMode": "workspace",
12-
"python.analysis.typeCheckingMode": "basic",
13+
"python.analysis.typeCheckingMode": "standard",
1314
"[python]": {
1415
"editor.defaultFormatter": "ms-python.black-formatter",
1516
"editor.codeActionsOnSave": {
16-
"source.organizeImports": true
17+
"source.organizeImports": "explicit"
1718
}
1819
},
1920
"[javascript]": {

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ custom-hook = "pdm_build.py"
6767
run-setuptools = false
6868

6969
[tool.pyright]
70+
typeCheckingMode = "standard"
7071
pythonPlatform = "All"
7172
reportPrivateImportUsage = false
7273
reportShadowedImports = false

0 commit comments

Comments
 (0)