From 6f5297c08e96b0473962648579459f8d34c25878 Mon Sep 17 00:00:00 2001 From: ZTF-Zeiram Date: Sat, 6 Dec 2025 03:47:38 +0000 Subject: [PATCH] Upload files to ".devcontainer" --- .devcontainer/devcontainer.json | 37 +++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..29f1ef6 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,37 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/ubuntu +{ + "name": "Ubuntu", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/base:noble", + + // Features to add to the dev container. More info: https://containers.dev/features. + "features": { + "ghcr.io/devcontainers/features/python:1": {} + }, + + // 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": "sudo apt update && sudo apt upgrade -y && sudo apt install -y xdg-utils libopengl0 libxcb-cursor0 qt6-base-dev && sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin", + + // Configure tool-specific properties. + "customizations": { + "vscode": { + "settings": { + "python.analysis.inlayHints.variableTypes": false, + "python.analysis.typeCheckingMode": "off", + "[python]": { + "editor.formatOnSave": false, + "editor.codeActionsOnSave": { + "source.organizeImports": "never" + } + } + }, + "extensions": [] + }}, + + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. + "remoteUser": "root" +}