diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fe9beb7..219d908 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,37 +1,37 @@ -{ - "name": "JS Dev Container", - "image": "mcr.microsoft.com/devcontainers/javascript-node:4-20", - "features": { - "ghcr.io/devcontainers/features/git:1": {}, - "ghcr.io/devcontainers/features/git-lfs:1": {}, - "ghcr.io/devcontainers-extra/features/pre-commit:2": {}, - "ghcr.io/devcontainers-extra/features/npm-packages:1": { - "packages": "@google/gemini-cli" - } - }, - "customizations": { - "vscode": { - "extensions": [ - "ms-python.python", - "esbenp.prettier-vscode", - "vitest.explorer", - "google.gemini-cli-vscode-ide-companion", - "google.geminicodeassist" - ], - "settings": { - "editor.formatOnSave": true, - "editor.defaultFormatter": "esbenp.prettier-vscode" - } - } - }, - "postStartCommand": "bash .devcontainer/setup.sh", - "remoteUser": "node", - "updateRemoteUserUID": true, - "mounts": [ - "source=pipx-venvs,target=/home/node/.local/share/pipx,type=volume", - "source=pipx-bin,target=/home/node/.local/bin,type=volume", - "source=pre-commit-cache,target=/home/node/.cache/pre-commit,type=volume", - "source=${localEnv:USERPROFILE}/.gemini,target=/home/node/.gemini,type=bind", - "source=gvscode-extensions,target=/home/node/.cache/google-vscode-extension,type=volume" - ] -} +{ + "name": "JS Dev Container", + "image": "mcr.microsoft.com/devcontainers/javascript-node:4-20", + "features": { + "ghcr.io/devcontainers/features/git:1": {}, + "ghcr.io/devcontainers/features/git-lfs:1": {}, + "ghcr.io/devcontainers-extra/features/pre-commit:2": {}, + "ghcr.io/devcontainers-extra/features/npm-packages:1": { + "packages": "@google/gemini-cli" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-python.python", + "esbenp.prettier-vscode", + "vitest.explorer", + "google.gemini-cli-vscode-ide-companion", + "google.geminicodeassist" + ], + "settings": { + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode" + } + } + }, + "postStartCommand": "bash .devcontainer/setup.sh", + "remoteUser": "node", + "updateRemoteUserUID": true, + "mounts": [ + "source=pipx-venvs,target=/home/node/.local/share/pipx,type=volume", + "source=pipx-bin,target=/home/node/.local/bin,type=volume", + "source=pre-commit-cache,target=/home/node/.cache/pre-commit,type=volume", + "source=${localEnv:USERPROFILE}/.gemini,target=/home/node/.gemini,type=bind", + "source=gvscode-extensions,target=/home/node/.cache/google-vscode-extension,type=volume" + ] +} diff --git a/.gitea/workflows/lint.yaml b/.gitea/workflows/lint.yaml index fd421c1..aa38381 100644 --- a/.gitea/workflows/lint.yaml +++ b/.gitea/workflows/lint.yaml @@ -1,18 +1,18 @@ -name: Lint - -on: - push: - workflow_dispatch: - -jobs: - pre-commit-lint: - name: pre-commit Linting - runs-on: pi - steps: - - uses: actions/checkout@v6 - - uses: actions/setup-python@v6 - - run: pip install pre-commit - shell: bash - - name: Pre Commit - run: SKIP=no-commit-to-branch pre-commit run -a - shell: bash +name: Lint + +on: + push: + workflow_dispatch: + +jobs: + pre-commit-lint: + name: pre-commit Linting + runs-on: pi + steps: + - uses: actions/checkout@v6 + - uses: actions/setup-python@v6 + - run: pip install pre-commit + shell: bash + - name: Pre Commit + run: SKIP=no-commit-to-branch pre-commit run -a + shell: bash