1
+ {
2
+ "name" :" Python Translation Devcontainer" ,
3
+ "image" :" python:3.12-slim" ,
4
+ "customizations" : {
5
+ "vscode" : {
6
+ "extensions" : [
7
+ " eamodio.gitlens" ,
8
+ " github.vscode-pull-request-github" ,
9
+ " github.vscode-github-actions" ,
10
+ " redhat.vscode-yaml" ,
11
+ " gettext.gettext" ,
12
+ " restructuredtext.restructuredtext"
13
+ ],
14
+ "settings" : {
15
+ "[python]" : {
16
+ "editor.formatOnSave" :true ,
17
+ "editor.codeActionsOnSave" : {
18
+ "source.organizeImports" :" always"
19
+ }
20
+ },
21
+ "python.defaultInterpreterPath" :" /usr/local/bin/python3" ,
22
+ "terminal.integrated.defaultProfile.linux" :" zsh" ,
23
+ "terminal.integrated.profiles.linux" : {
24
+ "zsh" : {
25
+ "path" :" /bin/zsh"
26
+ }
27
+ },
28
+ "terminal.integrated.env.linux" : {
29
+ "ZSH" :" /bin/zsh"
30
+ }
31
+ }
32
+ }
33
+ },
34
+ "features" : {
35
+ "ghcr.io/devcontainers/features/git:1" : {
36
+ "version" :" latest"
37
+ },
38
+ "ghcr.io/devcontainers/features/common-utils:2" : {}
39
+ },
40
+ "workspaceFolder" :" /python-docs-gr" ,
41
+ "workspaceMount" :" source=${localWorkspaceFolder},target=/python-docs-gr,type=bind,consistency=cached" ,
42
+ "postCreateCommand" :" sudo apt-get update && sudo apt-get install -y hunspell hunspell-el && pip install -r ./requirements.txt" ,
43
+ "mounts" : [
44
+ " source=pip-cache,target=/home/translator/.cache/pip,type=volume"
45
+ ],
46
+ "remoteUser" :" translator"
47
+ }