mirror of
https://github.com/CLIUtils/CLI11.git
synced 2026-01-19 04:52:08 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user