From 0d97efec687ad62ab60f4b22241bff28a3e52a82 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sat, 27 Dec 2025 01:20:39 +0100 Subject: [PATCH 1/2] chore: ressort whitespace hooks in pre-commit config --- .pre-commit-config.yaml | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e0ec95a..71c788e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,10 +3,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v6.0.0 hooks: - - id: end-of-file-fixer - exclude: (.txt$|.ipynb$|README.md$|readme.mde$) - - id: trailing-whitespace - exclude: (.txt$|README.md$) - id: check-yaml - id: check-json - id: check-toml @@ -22,7 +18,6 @@ repos: args: [--autofix, --no-sort-keys, --no-ensure-ascii] - id: check-merge-conflict - id: no-commit-to-branch - args: [--branch, main] - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks rev: v2.15.0 @@ -46,3 +41,13 @@ repos: - id: check-renovate - id: check-github-actions - id: check-github-workflows + +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v6.0.0 + hooks: + - id: end-of-file-fixer + exclude: (.txt$|.ipynb$|README.md$|readme.mde$) + - id: trailing-whitespace + exclude: (.txt$|README.md$) + - id: mixed-line-ending + args: [--fix=lf] -- 2.49.1 From e5773d323524e346a17b01d0a258d7120ca34a62 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Sat, 27 Dec 2025 01:32:38 +0100 Subject: [PATCH 2/2] chore: format devcontainer.json and lint.yaml for consistency --- .devcontainer/devcontainer.json | 74 ++++++++++++++++----------------- .gitea/workflows/lint.yaml | 36 ++++++++-------- 2 files changed, 55 insertions(+), 55 deletions(-) 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 -- 2.49.1