generated from devcontainers/feature-starter
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdevcontainer-feature.json
More file actions
48 lines (48 loc) · 1.75 KB
/
devcontainer-feature.json
File metadata and controls
48 lines (48 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"id": "rye",
"version": "1.2.4",
"name": "Rye",
"description": "A Hassle-Free Python Experience",
"dependsOn": {
"ghcr.io/devcontainers/features/common-utils": {}
},
"installsAfter": [
"ghcr.io/devcontainers/features/python"
],
"options": {},
"containerEnv": {
"RYE_NO_AUTO_INSTALL": "1",
"RYE_HOME": "/usr/local/lib/rye",
"PATH": "/usr/local/lib/rye/shims:${PATH}"
},
"postCreateCommand": "echo '. \"$HOME/.rye/env\"' >> ~/.profile",
"postAttachCommand": "if [ -f pyproject.toml ]; then if [ -f requirements-dev.lock ]; then rye sync --no-lock; else rye sync; fi; fi",
"customizations": {
"vscode": {
"extensions": [
"ms-python.python",
"tamasfe.even-better-toml"
],
"settings": {
"python.defaultInterpreterPath": ".venv/bin/python",
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.analysis.typeCheckingMode": "basic",
"python.terminal.activateEnvInCurrentTerminal": true,
"[python]": {
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "charliermarsh.ruff"
},
"notebook.formatOnSave.enabled": true,
"notebook.codeActionsOnSave": {
"notebook.source.fixAll": "explicit",
"notebook.source.organizeImports": "explicit"
}
}
}
}
}