devcontainer.json 1.02 KB
Newer Older
zhanggzh's avatar
zhanggzh committed
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
{
	"name": "Keras-cv",
	"build": {
		"dockerfile": "Dockerfile",
		"args": { 
			"VERSION": "2.10.0"
			// Uncomment this if GPU support is required
			// "VERSION": "2.10.0-gpu",
		}
	},

	"settings": {
		"python.pythonPath": "/usr/bin/python3",
		"python.linting.enabled": true,
		"python.linting.flake8Enabled": true,
		"python.testing.pytestEnabled":true,
		"python.editor.defaultFormatter": "ms-python.black-formatter",
		"python.editor.formatOnSave": true,
		"python.editor.codeActionsOnSave": {
			"source.organizeImports": true
		}
	},

	"extensions": [
		"ms-python.python",
		"ms-python.isort",
		"ms-python.black-formatter"
	],

	"features": {
		"git": {
			"version": "os-provided"
		}
	},

	// TODO: Improve to allow dynamic runArgs, see microsoft/vscode-remote-release#3972
	// Uncomment this if GPU support is required
	// "runArgs": [
    	//     "--gpus=all"
	// ],

	"onCreateCommand": "locale-gen \"en_US.UTF-8\""
	// Optional: install pre-commit hooks
	// "postCreateCommand": "git config core.hooksPath .github/.githooks"

}