-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PiperOrigin-RevId: 550561693 Change-Id: I31c89ef43ea31db322b6dac40f954e5ae65d97ae
- Loading branch information
Showing
2 changed files
with
70 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
// For format details, see https://aka.ms/devcontainer.json | ||
{ | ||
"name": "Melting Pot", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "..", | ||
"args": { | ||
"PYTHON_VERSION": "3.10" | ||
} | ||
}, | ||
"runArgs": [ | ||
// Increase SHM sufficiently for RLlib. Note you can increase this | ||
// further for performance gains (recommended to be at least 30% of RAM | ||
// on large machines). | ||
"--shm-size=6gb" | ||
], | ||
"postCreateCommand": "pip install --editable .[dev]", | ||
"containerEnv": { | ||
"PYTHONPATH": "/workspaces/meltingpot" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.python.pylint", | ||
"ms-python.vscode-pylance", | ||
"ms-azuretools.vscode-docker", | ||
"donjayamanne.githistory" | ||
] | ||
} | ||
"name": "Melting Pot", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "..", | ||
"args": { | ||
"PYTHON_VERSION": "3.10" | ||
} | ||
}, | ||
"runArgs": [ | ||
// Increase SHM sufficiently for RLlib. Note you can increase this | ||
// further for performance gains (recommended to be at least 30% of RAM | ||
// on large machines). | ||
"--shm-size=6gb" | ||
], | ||
"postCreateCommand": "pip install --editable .[dev]", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"donjayamanne.githistory", | ||
"ms-azuretools.vscode-docker", | ||
"ms-python.black-formatter", | ||
"ms-python.isort", | ||
"ms-python.pylint", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,50 @@ | ||
// See https://code.visualstudio.com/docs/getstarted/settings | ||
{ | ||
// Google formatting settings. | ||
"editor.rulers": [80], | ||
"editor.detectIndentation": false, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
// Google formatting settings. | ||
"editor.rulers": [80], | ||
"editor.detectIndentation": false, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"files.trimTrailingWhitespace": true, | ||
|
||
// Format modified lines on save. | ||
"editor.formatOnSave": true, | ||
"editor.formatOnSaveMode": "modifications", | ||
// Format modified lines on save. | ||
"editor.formatOnSave": true, | ||
"editor.formatOnSaveMode": "modifications", | ||
|
||
// File types used in this project. | ||
"files.associations": { | ||
".pylintrc": "ini" | ||
}, | ||
// File types used in this project. | ||
"files.associations": { | ||
".pylintrc": "ini" | ||
}, | ||
|
||
// Ignore Git and caches. | ||
"files.watcherExclude": { | ||
"**/.git/**": true | ||
}, | ||
"files.exclude": { | ||
"**/*.egg-info": true, | ||
"**/.eggs": true, | ||
"**/*.py[cod]": true, | ||
"**/__pycache__": true, | ||
"**/.cache": true, | ||
"**/.pytest_cache": true, | ||
"**/.pytype": true | ||
}, | ||
// Ignore Git and caches. | ||
"files.watcherExclude": { | ||
"**/.git/**": true | ||
}, | ||
"files.exclude": { | ||
"**/*.egg-info": true, | ||
"**/.eggs": true, | ||
"**/*.py[cod]": true, | ||
"**/__pycache__": true, | ||
"**/.cache": true, | ||
"**/.pytest_cache": true, | ||
"**/.pytype": true | ||
}, | ||
|
||
// Python settings. | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.linting.pylintUseMinimalCheckers": false, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
} | ||
}, | ||
"python.formatting.provider": "none", | ||
"black-formatter.path": ["pyink"] | ||
// Python settings. | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.nosetestsEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"python.linting.pylintUseMinimalCheckers": false, | ||
"[python]": { | ||
"editor.defaultFormatter": "ms-python.black-formatter", | ||
"editor.codeActionsOnSave": { | ||
"source.organizeImports": true | ||
} | ||
}, | ||
"python.formatting.provider": "none", | ||
"black-formatter.path": ["pyink"], | ||
"isort.args": ["--resolve-all-configs"], | ||
"isort.check": true | ||
} |