Files
priya-sundaram-devandChristian Clauss 5503767383 ci(devcontainer): Debian 13 Trixie + Python 3.14, Ruff settings, drop .vscode (keeper-safe .json-only) (#15162)
* ci(devcontainer): Debian 13 Trixie + Python 3.14, Ruff settings, drop .vscode

Bumps the base image to 3.14-trixie purely via devcontainer.json's
build.args.VARIANT (the Dockerfile's ARG reads it), so the Dockerfile
itself is untouched and keeps installing requirements + pipx pre-commit/ruff.

- VARIANT 3.13-bookworm -> 3.14-trixie (Debian 13, latest stable CPython).
- Replace removed python.linting.*/blackPath settings with Ruff format-on-save
  + fixAll/organizeImports (matches pre-commit and CI); add the Ruff extension.
- Delete .vscode/settings.json: pre-commit/Ruff cover this now.

Keeps the change to .json files only.

* ci(devcontainer): use prebuilt image instead of broken Dockerfile build

The devcontainer image build fails on main: the Dockerfile does
`COPY requirements.txt`, but that file was removed when the repo moved
its dependencies to pyproject.toml, so there is nothing to copy. Switch
devcontainer.json to pull the upstream mcr.microsoft.com/devcontainers/python
image and install pre-commit/ruff/uv in postCreateCommand. Fully within
.json so it stays keeper-safe; the now-unused Dockerfile can be dropped in
a follow-up once the keeper accepts the Dockerfile filename (#228).

* Update .devcontainer/devcontainer.json

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2026-09-02 21:50:40 +02:00
..

Development Container

This is Devcontainer configuration to provide a consistent development environment for all contributors.

Features

  • Pre-configured Python environment
  • Automatic installation of pre-commit hooks
  • Ruff linter ready to check your code
  • Oh My Zsh with plugins:
  • zsh-autosuggestions
  • zsh-syntax-highlighting

Usage

  1. Install Docker and Visual Studio Code

  2. Install the Remote - Containers extension in VS Code

    • Do CTRL+P, paste this command and press Enter

      ext install ms-vscode-remote.remote-containers
      
  3. Open this repository in VS Code

  4. When prompted, click "Reopen in Container"

  5. Wait for the environment to build and initialize

After setup:

  • pre-commit hooks are installed
  • ruff and other tools are available
  • The shell uses Zsh by default

Tips

To manually run checks on all files:

pre-commit run --all-files

For further information here's Microsoft tutorial about devcontainers.