update precommit markdownlint and add permissions on workflow files (#1246)

test out some precommit hooks and other updates

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Philip Top
2025-10-28 07:26:18 -07:00
committed by GitHub
parent bfffd37e1f
commit 3a1946e965
6 changed files with 80 additions and 50 deletions

View File

@@ -18,9 +18,11 @@ repos:
- id: check-symlinks
- id: check-yaml
- id: check-toml
- id: check-json
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- id: check-illegal-windows-names
- id: check-shebang-scripts-are-executable
- id: check-executables-have-shebangs
- id: debug-statements
@@ -37,19 +39,21 @@ repos:
- id: cmake-format
additional_dependencies: [pyyaml]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v4.0.0-alpha.8"
- repo: https://github.com/JoC0de/pre-commit-prettier
rev: v3.6.2
hooks:
- id: prettier
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]
- repo: https://github.com/markdownlint/markdownlint
rev: v0.13.0
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: markdownlint
args: [-s, ./scripts/.markdownlintrc]
- id: script-must-have-extension
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.12.0 # Use the latest stable version
hooks:
- id: markdownlint-cli2
args: ["--fix", "--config", "./scripts/.markdownlint-cli2.jsonc"] # Optional: specify a custom config file
# - repo: local
# hooks:
# - id: remarklint