Skip to content

chore: add pre-commit hooks#97

Merged
chorrell merged 1 commit into
mainfrom
chore/add-pre-commit-hooks
May 26, 2026
Merged

chore: add pre-commit hooks#97
chorrell merged 1 commit into
mainfrom
chore/add-pre-commit-hooks

Conversation

@chorrell
Copy link
Copy Markdown
Owner

Add .pre-commit-config.yaml with the following hooks, based on the docker-node-minimal reference config:

  • actionlint — lint GitHub Actions workflows
  • gitleaks — detect secrets and credentials
  • markdownlint-cli2-docker — lint markdown files
  • pre-commit-hooks — trailing whitespace, end-of-file fixer, check-yaml, check-json, check-merge-conflict, check-added-large-files, mixed-line-ending
  • shfmt-docker — format shell scripts
  • shellcheck — lint shell scripts
  • zizmor — GitHub Actions security auditing

Added check-json to the standard pre-commit-hooks set since this project includes JSON files (test.json).

@chorrell chorrell force-pushed the chore/add-pre-commit-hooks branch from 4e9431b to 58ed7fd Compare May 26, 2026 23:28
Add .pre-commit-config.yaml with the following hooks:
- actionlint: lint GitHub Actions workflows
- gitleaks: detect secrets and credentials
- markdownlint-cli2-docker: lint markdown files
- pre-commit-hooks: trailing whitespace, end-of-file fixer,
  check-yaml, check-json, check-merge-conflict,
  check-added-large-files, mixed-line-ending
- shfmt-docker: format shell scripts
- shellcheck: lint shell scripts
- zizmor: GitHub Actions security auditing
@chorrell chorrell force-pushed the chore/add-pre-commit-hooks branch from 58ed7fd to 40b6e36 Compare May 26, 2026 23:28
@chorrell chorrell merged commit 1cd89c8 into main May 26, 2026
3 checks passed
@chorrell chorrell deleted the chore/add-pre-commit-hooks branch May 26, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant