diff --git a/.copier-answers.yml b/.copier-answers.yml index 66dbc38..6d5833b 100644 --- a/.copier-answers.yml +++ b/.copier-answers.yml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier; NEVER EDIT MANUALLY -_commit: v1.0.4 +_commit: v1.1.0 _src_path: gh:mjun0812/python-copier-template author_email: mjun@mjunya.com author_name: Junya Morioka diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index cbc60d1..1494755 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,10 +5,11 @@ "DISPLAY": "${localEnv:DISPLAY}", "PYTHONUNBUFFERED": "1", "PYTHONDONTWRITEBYTECODE": "1", - "UV_CACHE_DIR": "${containerWorkspaceFolder}/.cache/uv", + "UV_CACHE_DIR": "/home/vscode/.cache/uv", "UV_LINK_MODE": "copy", "UV_PROJECT_ENVIRONMENT": "/home/vscode/.venv", - "UV_COMPILE_BYTECODE": "1" + "UV_COMPILE_BYTECODE": "1", + "CLAUDE_CONFIG_DIR": "/home/vscode/.claude" }, "features": { "ghcr.io/devcontainers/features/github-cli:1": {}, @@ -16,7 +17,7 @@ "configureZshAsDefaultShell": true }, "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { - "packages": "curl,wget,git,jq,ca-certificates,build-essential,ripgrep" + "packages": "curl,wget,git,jq,ca-certificates,build-essential,ripgrep,fd-find" }, "ghcr.io/va-h/devcontainers-features/uv:1": { "shellAutocompletion": true @@ -46,9 +47,16 @@ ] } }, + "remoteUser": "vscode", + "containerUser": "vscode", + "initializeCommand": "mkdir -p ${localEnv:HOME}/.claude ${localEnv:HOME}/.codex && touch ${localEnv:HOME}/.claude/CLAUDE.md ${localEnv:HOME}/.codex/config.toml", "mounts": [ - "source=claude-code-config,target=/home/vscode/.claude,type=volume" + "source=shell_history-${devcontainerId},target=/shell_history,type=volume", + "source=${localEnv:HOME}/.claude,target=/home/vscode/.claude,type=bind", + "source=${localEnv:HOME}/.claude/CLAUDE.md,target=/home/vscode/.claude/CLAUDE.md,type=bind", + "source=${localEnv:HOME}/.codex,target=/home/vscode/.codex,type=bind", + "source=${localEnv:HOME}/.codex/config.toml,target=/home/vscode/.codex/config.toml,type=bind" ], - "postCreateCommand": "uv sync", + "postCreateCommand": "npm install -g @openai/codex@latest && uv sync", "postStartCommand": "uv run pre-commit install" } \ No newline at end of file diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 579f83a..e67372f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.7.11 + rev: 0.8.22 hooks: - id: uv-lock - repo: https://github.com/astral-sh/ruff-pre-commit # Ruff version. - rev: v0.11.12 + rev: v0.13.2 hooks: # Run the linter. - id: ruff-check diff --git a/.cursor/rules/coding_style.mdc b/AGENTS.md similarity index 95% rename from .cursor/rules/coding_style.mdc rename to AGENTS.md index 4c54694..7e059fa 100644 --- a/.cursor/rules/coding_style.mdc +++ b/AGENTS.md @@ -1,8 +1,3 @@ ---- -description: -globs: -alwaysApply: true ---- # Development Guidelines This document contains critical information about working with this codebase. diff --git a/pyproject.toml b/pyproject.toml index 866f942..45ca307 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,7 +64,6 @@ ignore = [ "SIM105", # try-except-pass blocks that can be replaced with the contextlib.suppress context manager. "SIM108", # Use ternary operator instead of `if`-`else`-block "SIM116", # Use a dictionary instead of consecutive `if` statements - "UP038", # (Deprecated) Use `X | Y` in `isinstance` call instead of `(X, Y)` ] unfixable = [ "F401", # unused import