diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 2202cc4..4ab57eb 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -15,14 +15,14 @@ "chat.detectParticipant.enabled": true, "files.eol": "\n", "files.exclude": { - "**/.git": true, - "**/.DS_Store": true, - "**/Thumbs.db": true, - "**/__pycache__": true, - ".pytest_cache": true, - ".coverage": true, - ".ruff_cache": true, - ".venv": true + "**/.git": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/__pycache__": true, + ".pytest_cache": true, + ".coverage": true, + ".ruff_cache": true, + ".venv": true }, "files.insertFinalNewline": true, "files.trimTrailingWhitespace": true, @@ -80,6 +80,7 @@ "GitHub.vscode-github-actions" ] } - } + }, // "postStartCommand": "pip install -U pip" + "initializeCommand": "[ ! -f .env ] && touch .env || true" } diff --git a/README.md b/README.md index 2d3b7cc..97461d5 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,6 @@ GitHub のリポジトリページの「Use this template」を押下して使 - VS Code の拡張機能「Remote - Containers」インストール - https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers - 本リポジトリの clone -- `.env` ファイルを空ファイルでプロジェクト直下に作成 - ssh-agent の設定 - https://code.visualstudio.com/docs/devcontainers/containers#_using-a-credential-helper - 以下をプロジェクト名に合わせて変更 @@ -63,7 +62,7 @@ GitHub のリポジトリページの「Use this template」を押下して使 - `uv run main.py` - ユニットテスト - `uv run python -m pytest` - - `uvx pytest` の設定もしているが、uv環境で実装されないため、上記コマンドで実行する + - `uvx pytest` の設定もしているが、uv 環境で実装されないため、上記コマンドで実行する - lint - `uvx ruff check` - `uvx ruff check --fix`