{
  "name": "Python Development",
  "image": "mcr.microsoft.com/devcontainers/python:3.14",
  "workspaceMount": "source=aioiregul-workspace,target=/workspace,type=volume",
  "workspaceFolder": "/workspace",
  "customizations": {
    "vscode": {
      "settings": {
        "python.defaultInterpreterPath": ".venv/bin/python",
        "python.pythonPath": ".venv/bin/python",
        "python.terminal.activateEnvInCurrentTerminal": true,
        "python.testing.pytestArgs": ["--no-cov"],
        "python.analysis.typeCheckingMode": "strict",
        "editor.formatOnPaste": false,
        "editor.formatOnSave": true,
        "editor.formatOnType": true,
        "files.trimTrailingWhitespace": true,
        "[python]": {
          "editor.defaultFormatter": "charliermarsh.ruff",
          "editor.formatOnSave": true,
          "editor.codeActionsOnSave": {
            "source.fixAll": "explicit",
            "source.organizeImports": "explicit"
          }
        },
        "[json][jsonc][yaml]": {
          "editor.defaultFormatter": "esbenp.prettier-vscode"
        },
        "ruff.enable": true,
        "ruff.organizeImports": true,
        "mypy.runUsingActiveInterpreter": true
      },
      "extensions": [
        "ms-python.python",
        "ms-python.vscode-pylance",
        "charliermarsh.ruff",
        "redhat.vscode-yaml",
        "esbenp.prettier-vscode",
        "GitHub.vscode-pull-request-github",
        "GitHub.copilot"
      ]
    }
  },
  "postCreateCommand": "pip install uv && uv sync --all-extras",
  "remoteUser": "vscode",
  "features": {
    "ghcr.io/devcontainers/features/git:1": {},
    "ghcr.io/devcontainers/features/github-cli:1": {}
  },
  "postAttachCommand": {
    "set-eol": "git config --global core.autocrlf input"
  }
}
