-
Notifications
You must be signed in to change notification settings - Fork 436
Devcontainer configuration #621
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
d6d3670
First Devcontainer configuration
twsl 88b8675
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2ded793
Fix manifest missing error
twsl 0ad69ea
Updated CHANGELOG
twsl 1a791da
Set default interpreter
twsl 3ec79e9
Add docs
twsl 245c564
Merge branch 'master' into devcontainer
twsl 22c3af8
Merge branch 'master' into devcontainer
twsl f3b9ff0
Add docs support
twsl f074381
Update devcontainer.json
twsl c592d2a
Merge branch 'master' into devcontainer
Borda 9bc44ae
drop yapf
Borda aa08127
Merge branch 'master' into devcontainer
SkafteNicki 8f25cca
Apply suggestions from code review
Borda 41f6629
Add sorting
twsl 400f30e
Merge branch 'master' into devcontainer
mergify[bot] 80c99fb
Merge branch 'master' into devcontainer
mergify[bot] e4b8235
Fix pre-commit python version
twsl a0e6b9b
Use existing configurations
twsl 9ce751c
Moved pip dependencies to docker image
twsl 4d0154e
Update tabs
twsl 93ae299
Merge branch 'master' into devcontainer
mergify[bot] d5e93f3
Merge branch 'master' into devcontainer
mergify[bot] a7b89bd
Create docker_devcontainer.yml
justusschock f23decb
Update .github/workflows/docker_devcontainer.yml
justusschock 040c2d3
Apply suggestions from code review
justusschock 1e9b2d2
Update .github/workflows/docker_devcontainer.yml
justusschock 6008ecc
Create ci_docker.yml
justusschock cc6191e
Update ci_docker.yml
justusschock 3c94b7d
Update ci_docker.yml
justusschock f297510
Update docker_devcontainer.yml
justusschock 3e90658
Update ci_docker.yml
justusschock 4a7e938
Update docker_devcontainer.yml
justusschock 57714f0
Update .github/workflows/ci_docker.yml
justusschock 757410e
Update .devcontainer/devcontainer.json
justusschock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/python-3/.devcontainer/base.Dockerfile | ||
|
||
# [Choice] Python version: 3, 3.9, 3.8, 3.7, 3.6 | ||
ARG VARIANT="3.9" | ||
FROM mcr.microsoft.com/vscode/devcontainers/python:0-${VARIANT} | ||
justusschock marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10 | ||
ARG NODE_VERSION="none" | ||
RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi | ||
|
||
# [Optional] If your pip requirements rarely change, uncomment this section to add them to the image. | ||
# COPY requirements.txt /tmp/pip-tmp/ | ||
# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \ | ||
# && rm -rf /tmp/pip-tmp | ||
|
||
# [Optional] Uncomment this section to install additional OS packages. | ||
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | ||
# && apt-get -y install --no-install-recommends <your-package-list-here> | ||
|
||
# [Optional] Uncomment this line to install global node packages. | ||
# RUN su vscode -c "source /usr/local/share/nvm/nvm.sh && npm install -g <your-package-here>" 2>&1 |
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: | ||
// https://github.com/microsoft/vscode-dev-containers/tree/v0.194.0/containers/python-3 | ||
{ | ||
"name": "Python 3", | ||
"build": { | ||
"dockerfile": "Dockerfile", | ||
"context": "..", | ||
"args": { | ||
// Update 'VARIANT' to pick a Python version: 3, 3.6, 3.7, 3.8, 3.9 | ||
"VARIANT": "3.8", | ||
Borda marked this conversation as resolved.
Show resolved
Hide resolved
Borda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
// Options | ||
"NODE_VERSION": "none" | ||
} | ||
}, | ||
"runArgs": [ | ||
// Enable GPU passthrough, requires WSL2 on Windows | ||
//"--gpus=all", | ||
], | ||
// Set *default* container specific settings.json values on container create. | ||
"settings": { | ||
"editor.rulers": [ | ||
120 | ||
], | ||
"python.pythonPath": "/usr/local/bin/python", | ||
"python.defaultInterpreterPath": "/usr/local/bin/python", | ||
"python.languageServer": "Pylance", | ||
"python.autoComplete.addBrackets": true, | ||
"python.analysis.autoImportCompletions": true, | ||
"python.analysis.completeFunctionParens": true, | ||
"python.analysis.autoSearchPaths": true, | ||
"python.analysis.useImportHeuristic": true, | ||
"python.linting.enabled": true, | ||
"python.linting.pylintEnabled": false, | ||
"python.linting.flake8Enabled": true, | ||
"python.formatting.autopep8Path": "/usr/local/py-utils/bin/autopep8", | ||
"python.formatting.blackPath": "/usr/local/py-utils/bin/black", | ||
"python.formatting.yapfPath": "/usr/local/py-utils/bin/yapf", | ||
Borda marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"python.formatting.provider": "black", | ||
"python.formatting.blackArgs": [ | ||
"--line-length=120" | ||
], | ||
twsl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit", | ||
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8", | ||
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy", | ||
"python.linting.pycodestylePath": "/usr/local/py-utils/bin/pycodestyle", | ||
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle", | ||
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint", | ||
"python.linting.flake8Args": [ | ||
"--ignore=E24,W504,F401,E203,W503", | ||
"--max-line-length=120", | ||
"--verbose" | ||
], | ||
}, | ||
// Add the IDs of extensions you want installed when the container is created. | ||
"extensions": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"kevinrose.vsc-python-indent", | ||
"littlefoxteam.vscode-python-test-adapter", | ||
"hbenl.vscode-test-explorer", | ||
"medo64.render-crlf", | ||
"shardulm94.trailing-spaces", | ||
"njqdev.vscode-python-typehint", | ||
], | ||
// Use 'forwardPorts' to make a list of ports inside the container available locally. | ||
// "forwardPorts": [], | ||
// Use 'postCreateCommand' to run commands after the container is created. | ||
"postCreateCommand": "pip3 install --user -r ./requirements/devel.txt && pre-commit install", | ||
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. | ||
"remoteUser": "vscode" | ||
} |
This file contains hidden or 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
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.