Skip to content

Commit

Permalink
chore
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplants committed Apr 22, 2024
1 parent 55f27ee commit 2dedf87
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
}
1 change: 1 addition & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"-ms-python.vscode-pylance"
],
"settings": {
"dev.containers.experimentalLockfile": true,
"terminal.integrated.defaultProfile.linux": "zsh",
"python.defaultInterpreterPath": "./.venv/bin/python",
"[python]": {
Expand Down
11 changes: 8 additions & 3 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@ updates:
directory: /
schedule:
interval: monthly
- package-ecosystem: devcontainers
directory: /
schedule:
interval: monthly

0 comments on commit 2dedf87

Please sign in to comment.