chore: ressort whitespace hooks in pre-commit config (#52)
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m24s

Reviewed-on: #52
This commit was merged in pull request #52.
This commit is contained in:
2025-12-27 01:42:41 +01:00
3 changed files with 65 additions and 60 deletions

View File

@@ -1,37 +1,37 @@
{ {
"name": "JS Dev Container", "name": "JS Dev Container",
"image": "mcr.microsoft.com/devcontainers/javascript-node:4-20", "image": "mcr.microsoft.com/devcontainers/javascript-node:4-20",
"features": { "features": {
"ghcr.io/devcontainers/features/git:1": {}, "ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/git-lfs:1": {}, "ghcr.io/devcontainers/features/git-lfs:1": {},
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}, "ghcr.io/devcontainers-extra/features/pre-commit:2": {},
"ghcr.io/devcontainers-extra/features/npm-packages:1": { "ghcr.io/devcontainers-extra/features/npm-packages:1": {
"packages": "@google/gemini-cli" "packages": "@google/gemini-cli"
} }
}, },
"customizations": { "customizations": {
"vscode": { "vscode": {
"extensions": [ "extensions": [
"ms-python.python", "ms-python.python",
"esbenp.prettier-vscode", "esbenp.prettier-vscode",
"vitest.explorer", "vitest.explorer",
"google.gemini-cli-vscode-ide-companion", "google.gemini-cli-vscode-ide-companion",
"google.geminicodeassist" "google.geminicodeassist"
], ],
"settings": { "settings": {
"editor.formatOnSave": true, "editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode" "editor.defaultFormatter": "esbenp.prettier-vscode"
} }
} }
}, },
"postStartCommand": "bash .devcontainer/setup.sh", "postStartCommand": "bash .devcontainer/setup.sh",
"remoteUser": "node", "remoteUser": "node",
"updateRemoteUserUID": true, "updateRemoteUserUID": true,
"mounts": [ "mounts": [
"source=pipx-venvs,target=/home/node/.local/share/pipx,type=volume", "source=pipx-venvs,target=/home/node/.local/share/pipx,type=volume",
"source=pipx-bin,target=/home/node/.local/bin,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=pre-commit-cache,target=/home/node/.cache/pre-commit,type=volume",
"source=${localEnv:USERPROFILE}/.gemini,target=/home/node/.gemini,type=bind", "source=${localEnv:USERPROFILE}/.gemini,target=/home/node/.gemini,type=bind",
"source=gvscode-extensions,target=/home/node/.cache/google-vscode-extension,type=volume" "source=gvscode-extensions,target=/home/node/.cache/google-vscode-extension,type=volume"
] ]
} }

View File

@@ -1,18 +1,18 @@
name: Lint name: Lint
on: on:
push: push:
workflow_dispatch: workflow_dispatch:
jobs: jobs:
pre-commit-lint: pre-commit-lint:
name: pre-commit Linting name: pre-commit Linting
runs-on: pi runs-on: pi
steps: steps:
- uses: actions/checkout@v6 - uses: actions/checkout@v6
- uses: actions/setup-python@v6 - uses: actions/setup-python@v6
- run: pip install pre-commit - run: pip install pre-commit
shell: bash shell: bash
- name: Pre Commit - name: Pre Commit
run: SKIP=no-commit-to-branch pre-commit run -a run: SKIP=no-commit-to-branch pre-commit run -a
shell: bash shell: bash

View File

@@ -3,10 +3,6 @@ repos:
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 rev: v6.0.0
hooks: 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-yaml
- id: check-json - id: check-json
- id: check-toml - id: check-toml
@@ -22,7 +18,6 @@ repos:
args: [--autofix, --no-sort-keys, --no-ensure-ascii] args: [--autofix, --no-sort-keys, --no-ensure-ascii]
- id: check-merge-conflict - id: check-merge-conflict
- id: no-commit-to-branch - id: no-commit-to-branch
args: [--branch, main]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks - repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.15.0 rev: v2.15.0
@@ -46,3 +41,13 @@ repos:
- id: check-renovate - id: check-renovate
- id: check-github-actions - id: check-github-actions
- id: check-github-workflows - 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]