mirror of
https://github.com/Stability-AI/generative-models.git
synced 2026-02-02 04:14:27 +01:00
Add devcontainer configs
This commit is contained in:
33
.devcontainer/devcontainer.json
Normal file
33
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "Python 3",
|
||||
"image": "mcr.microsoft.com/devcontainers/python:1-3.10-bullseye",
|
||||
"features": {
|
||||
"ghcr.io/devcontainers-contrib/features/hatch:2": {
|
||||
"version": "latest"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/pipx-package:1": {
|
||||
"package": "black",
|
||||
"version": "latest",
|
||||
"injections": "pylint pytest",
|
||||
"interpreter": "python3"
|
||||
},
|
||||
"ghcr.io/devcontainers-contrib/features/apt-get-packages:1": {
|
||||
"packages": "libgl1-mesa-glx"
|
||||
}
|
||||
},
|
||||
"customizations": {
|
||||
"vscode": {
|
||||
"extensions": [
|
||||
"ms-python.python",
|
||||
"ms-python.vscode-pylance",
|
||||
"ms-python.black-formatter"
|
||||
],
|
||||
"settings": {
|
||||
"editor.defaultFormatter": "ms-python.black-formatter",
|
||||
"editor.formatOnSave": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"postCreateCommand": "git config --global --add safe.directory '*'; pip install -r requirements/pt2.txt; pip install -e ."
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user