From 2dedf8724d21c5f4289d96d9323fb5ebcc3c2731 Mon Sep 17 00:00:00 2001 From: eggplants Date: Tue, 23 Apr 2024 02:38:50 +0900 Subject: [PATCH] chore --- .devcontainer/devcontainer-lock.json | 29 ++++++++++++++++++++++++++++ .devcontainer/devcontainer.json | 1 + .devcontainer/postCreateCommand.sh | 11 ++++++++--- .github/dependabot.yml | 4 ++++ 4 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 .devcontainer/devcontainer-lock.json diff --git a/.devcontainer/devcontainer-lock.json b/.devcontainer/devcontainer-lock.json new file mode 100644 index 0000000..9f37fbc --- /dev/null +++ b/.devcontainer/devcontainer-lock.json @@ -0,0 +1,29 @@ +{ + "features": { + "ghcr.io/devcontainers-contrib/features/poetry:2": { + "version": "2.0.17", + "resolved": "ghcr.io/devcontainers-contrib/features/poetry@sha256:85ad0e0190682104214e5ae4faa2bf8c2e181802567c01db0ef2dc9a70790f32", + "integrity": "sha256:85ad0e0190682104214e5ae4faa2bf8c2e181802567c01db0ef2dc9a70790f32" + }, + "ghcr.io/devcontainers-contrib/features/shfmt:1": { + "version": "1.0.0", + "resolved": "ghcr.io/devcontainers-contrib/features/shfmt@sha256:799fb12ab53479809b10b193e5892c1ed4cc38b4ef0ef6d6ca233ffa92cd370f", + "integrity": "sha256:799fb12ab53479809b10b193e5892c1ed4cc38b4ef0ef6d6ca233ffa92cd370f" + }, + "ghcr.io/devcontainers/features/common-utils:2": { + "version": "2.4.3", + "resolved": "ghcr.io/devcontainers/features/common-utils@sha256:e9e1d402031416ed5fc500f242c27ffa1043a27b5ba612e6596ea62503c8ae70", + "integrity": "sha256:e9e1d402031416ed5fc500f242c27ffa1043a27b5ba612e6596ea62503c8ae70" + }, + "ghcr.io/devcontainers/features/python:1": { + "version": "1.4.2", + "resolved": "ghcr.io/devcontainers/features/python@sha256:bf021f1800543f08bf029c449a3f25341be782b620802befa1f8e6ee51cf6cf6", + "integrity": "sha256:bf021f1800543f08bf029c449a3f25341be782b620802befa1f8e6ee51cf6cf6" + }, + "ghcr.io/dhoeric/features/hadolint:1": { + "version": "1.0.0", + "resolved": "ghcr.io/dhoeric/features/hadolint@sha256:993e7e6f14b7f53aafefb081eb8396ea08f3d48aebb23c91fbaa10651ca0a835", + "integrity": "sha256:993e7e6f14b7f53aafefb081eb8396ea08f3d48aebb23c91fbaa10651ca0a835" + } + } +} \ No newline at end of file diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 94cd40d..51c998c 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -36,6 +36,7 @@ "-ms-python.vscode-pylance" ], "settings": { + "dev.containers.experimentalLockfile": true, "terminal.integrated.defaultProfile.linux": "zsh", "python.defaultInterpreterPath": "./.venv/bin/python", "[python]": { diff --git a/.devcontainer/postCreateCommand.sh b/.devcontainer/postCreateCommand.sh index 5df5a66..f8e8080 100644 --- a/.devcontainer/postCreateCommand.sh +++ b/.devcontainer/postCreateCommand.sh @@ -5,9 +5,14 @@ set -eux # create poetry venvdir under projectdir poetry config virtualenvs.in-project true poetry install +git config --global --add safe.directory /workspaces/* poetry run pre-commit # Install typos cli -curl -sLO https://raw.githubusercontent.com/crate-ci/gh-install/master/v1/install.sh -sh install.sh -s -- --git crate-ci/typos --to ~/.local/bin --target x86_64-unknown-linux-musl -rm install.sh +if + ! command -v typos >/dev/null 2>&1 +then + curl -sLO https://raw.githubusercontent.com/crate-ci/gh-install/master/v1/install.sh + sh install.sh -s -- --git crate-ci/typos --to ~/.local/bin --target x86_64-unknown-linux-musl + rm install.sh +fi diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 3c72c3b..ccdf8b6 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -17,3 +17,7 @@ updates: directory: / schedule: interval: monthly +- package-ecosystem: devcontainers + directory: / + schedule: + interval: monthly