diff --git a/.devcontainer.json b/.devcontainer.json index bf9c540..0ed64c7 100644 --- a/.devcontainer.json +++ b/.devcontainer.json @@ -1,29 +1,53 @@ { - "image": "ghcr.io/ludeeus/devcontainer/python:stable", - "context": "..", + "name": "hacs/default", + "image": "mcr.microsoft.com/vscode/devcontainers/python:0-3.10-bullseye", "postCreateCommand": "python3 -m pip install -r requirements.txt", + "context": ".", "extensions": [ "ms-python.python", "github.vscode-pull-request-github", "ryanluker.vscode-coverage-gutters", - "ms-python.vscode-pylance" + "ms-python.vscode-pylance", + "GitHub.copilot" ], - "settings": { - "files.eol": "\n", - "editor.tabSize": 4, - "terminal.integrated.shell.linux": "/bin/bash", - "python.pythonPath": "/usr/local/python/bin/python", - "python.analysis.autoSearchPaths": false, - "python.linting.pylintEnabled": true, - "python.linting.enabled": true, - "python.linting.pylintArgs": [ - "--disable", - "import-error" - ], - "python.formatting.provider": "black", - "editor.formatOnPaste": false, - "editor.formatOnSave": true, - "editor.formatOnType": true, - "files.trimTrailingWhitespace": true - } + "customizations": { + "vscode": { + "settings": { + "python.defaultInterpreterPath": "/usr/local/bin/python", + "python.linting.enabled": true, + "python.linting.pylintEnabled": 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", + "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", + "files.eol": "\n", + "editor.tabSize": 4, + "python.pythonPath": "/usr/local/python/bin/python", + "python.analysis.autoSearchPaths": false, + "python.linting.pylintArgs": [ + "--disable", + "import-error" + ], + "python.formatting.provider": "black", + "editor.formatOnPaste": false, + "editor.formatOnSave": true, + "editor.formatOnType": true, + "files.trimTrailingWhitespace": true + }, + "extensions": [ + "GitHub.copilot", + "github.vscode-pull-request-github", + "ms-python.python", + "ms-python.vscode-pylance", + "ms-vscode.makefile-tools", + "ryanluker.vscode-coverage-gutters" + ] + } + }, + "remoteUser": "vscode" } \ No newline at end of file diff --git a/tools/Dockerfile b/tools/Dockerfile index 2399b5a..b98c9a2 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -1,8 +1,10 @@ -FROM ghcr.io/ludeeus/alpine/base:stable +FROM alpine +RUN apk add --no-cache git jq bash # docker build . -f tools/Dockerfile --tag repositories -# docker run --rm --name repositories repositories sleep 3600 +# docker run -d --rm --name repositories repositories sleep 3600 # docker exec -it repositories bash +# docker kill repositories (when done) # Find stuff with 'grep -Ri "string_to_find" /'