dependabot[bot]
141a8bc406
build(deps): bump https://github.com/rhysd/actionlint
...
Bumps the pre-commit-hooks group with 1 update: [https://github.com/rhysd/actionlint ](https://github.com/rhysd/actionlint ).
Updates `https://github.com/rhysd/actionlint ` from v1.7.11 to 1.7.12
- [Release notes](https://github.com/rhysd/actionlint/releases )
- [Changelog](https://github.com/rhysd/actionlint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rhysd/actionlint/compare/v1.7.11...v1.7.12 )
---
updated-dependencies:
- dependency-name: https://github.com/rhysd/actionlint
dependency-version: 1.7.12
dependency-type: direct:production
dependency-group: pre-commit-hooks
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-31 15:00:01 +00:00
dependabot[bot]
45ebb3d0c8
build(deps): bump https://github.com/rubocop/rubocop
...
Bumps the pre-commit-hooks group with 1 update: [https://github.com/rubocop/rubocop ](https://github.com/rubocop/rubocop ).
Updates `https://github.com/rubocop/rubocop ` from v1.85.1 to 1.86.0
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.85.1...v1.86.0 )
---
updated-dependencies:
- dependency-name: https://github.com/rubocop/rubocop
dependency-version: 1.86.0
dependency-type: direct:production
dependency-group: pre-commit-hooks
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-23 15:23:09 +00:00
John Bampton
80d84188fd
pre-commit bump Node.js
2026-03-18 17:57:33 +10:00
dependabot[bot]
14e98c60c3
build(deps): bump the pre-commit-hooks group across 1 directory with 8 updates
...
Bumps the pre-commit-hooks group with 8 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [https://github.com/gitleaks/gitleaks ](https://github.com/gitleaks/gitleaks ) | `v8.30.0` | `8.30.1` |
| [https://github.com/oxipng/oxipng ](https://github.com/oxipng/oxipng ) | `v10.0.0` | `10.1.0` |
| [https://github.com/Lucas-C/pre-commit-hooks ](https://github.com/Lucas-C/pre-commit-hooks ) | `v1.5.5` | `1.5.6` |
| [https://github.com/rhysd/actionlint ](https://github.com/rhysd/actionlint ) | `v1.7.9` | `1.7.11` |
| [https://github.com/codespell-project/codespell ](https://github.com/codespell-project/codespell ) | `v2.4.1` | `2.4.2` |
| [https://github.com/igorshubovych/markdownlint-cli ](https://github.com/igorshubovych/markdownlint-cli ) | `v0.46.0` | `0.48.0` |
| [https://github.com/rubocop/rubocop ](https://github.com/rubocop/rubocop ) | `v1.81.7` | `1.85.1` |
| [https://github.com/adrienverge/yamllint ](https://github.com/adrienverge/yamllint ) | `v1.37.1` | `1.38.0` |
Updates `https://github.com/gitleaks/gitleaks ` from v8.30.0 to 8.30.1
- [Release notes](https://github.com/gitleaks/gitleaks/releases )
- [Commits](https://github.com/gitleaks/gitleaks/compare/v8.30.0...v8.30.1 )
Updates `https://github.com/oxipng/oxipng ` from v10.0.0 to 10.1.0
- [Release notes](https://github.com/oxipng/oxipng/releases )
- [Changelog](https://github.com/oxipng/oxipng/blob/master/CHANGELOG.md )
- [Commits](https://github.com/oxipng/oxipng/compare/v10.0.0...v10.1.0 )
Updates `https://github.com/Lucas-C/pre-commit-hooks ` from v1.5.5 to 1.5.6
- [Release notes](https://github.com/Lucas-C/pre-commit-hooks/releases )
- [Commits](https://github.com/Lucas-C/pre-commit-hooks/compare/v1.5.5...v1.5.6 )
Updates `https://github.com/rhysd/actionlint ` from v1.7.9 to 1.7.11
- [Release notes](https://github.com/rhysd/actionlint/releases )
- [Changelog](https://github.com/rhysd/actionlint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/rhysd/actionlint/compare/v1.7.9...v1.7.11 )
Updates `https://github.com/codespell-project/codespell ` from v2.4.1 to 2.4.2
- [Release notes](https://github.com/codespell-project/codespell/releases )
- [Commits](https://github.com/codespell-project/codespell/compare/v2.4.1...v2.4.2 )
Updates `https://github.com/igorshubovych/markdownlint-cli ` from v0.46.0 to 0.48.0
- [Release notes](https://github.com/igorshubovych/markdownlint-cli/releases )
- [Commits](https://github.com/igorshubovych/markdownlint-cli/compare/v0.46.0...v0.48.0 )
Updates `https://github.com/rubocop/rubocop ` from v1.81.7 to 1.85.1
- [Release notes](https://github.com/rubocop/rubocop/releases )
- [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rubocop/rubocop/compare/v1.81.7...v1.85.1 )
Updates `https://github.com/adrienverge/yamllint ` from v1.37.1 to 1.38.0
- [Release notes](https://github.com/adrienverge/yamllint/releases )
- [Changelog](https://github.com/adrienverge/yamllint/blob/master/CHANGELOG.rst )
- [Commits](https://github.com/adrienverge/yamllint/compare/v1.37.1...v1.38.0 )
---
updated-dependencies:
- dependency-name: https://github.com/gitleaks/gitleaks
dependency-version: 8.30.1
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/oxipng/oxipng
dependency-version: 10.1.0
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/Lucas-C/pre-commit-hooks
dependency-version: 1.5.6
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/rhysd/actionlint
dependency-version: 1.7.11
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/codespell-project/codespell
dependency-version: 2.4.2
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/igorshubovych/markdownlint-cli
dependency-version: 0.48.0
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/rubocop/rubocop
dependency-version: 1.85.1
dependency-type: direct:production
dependency-group: pre-commit-hooks
- dependency-name: https://github.com/adrienverge/yamllint
dependency-version: 1.38.0
dependency-type: direct:production
dependency-group: pre-commit-hooks
...
Signed-off-by: dependabot[bot] <support@github.com >
2026-03-13 14:57:23 +00:00
Yukihiro "Matz" Matsumoto
12af8f513e
Merge pull request #6742 from mruby/fix/remove-markdown-link-check
2026-03-12 11:52:45 +09:00
Yukihiro "Matz" Matsumoto
6a7561da5f
pre-commit: remove JSON references from prettier hook
...
Co-authored-by: Claude <noreply@anthropic.com >
2026-03-12 11:41:17 +09:00
Yukihiro "Matz" Matsumoto
ab378ec01e
Merge pull request #6690 from jbampton/cleanup-prettier-pre-commit
2026-03-12 11:37:25 +09:00
Yukihiro "Matz" Matsumoto
628cf498a7
pre-commit: remove markdown-link-check hook
...
External link checkers are inherently flaky in CI due to
websites blocking automated requests (e.g. 403 errors).
Also remove JSON hooks (pretty-format-json, check-json)
since no JSON files remain in the repository.
Co-authored-by: Claude <noreply@anthropic.com >
2026-03-12 11:32:37 +09:00
Yukihiro "Matz" Matsumoto
564995a91a
update documentation and Makefile for prek migration
...
Co-authored-by: Claude <noreply@anthropic.com >
2026-02-10 14:45:22 +09:00
John Bampton
3c7d19d41b
prettier: set pass_filenames: false to avoid multiple passes
...
Updated `.prettierignore` to ingnore the typical Python environment files from `.venv`
If you are running pre-commit locally you probably have a Python environment setup.
This PR speeds up the prettier hook and avoids multiple passes through the targetted files.
2025-12-30 01:53:03 +10:00
John Bampton
a2523c6745
pre-commit autoupdate; update node and prettier
2025-12-07 10:19:04 +10:00
John Bampton
8623215c69
Add pre-commit hook check-zip-file-is-not-committed
...
Zip files should not be allowed in the repository as they are hard to track and have security implications.
2025-11-28 23:58:42 +10:00
John Bampton
88bc3c130f
Merge branch 'master' into manual-hooks
2025-11-28 05:43:37 +10:00
Yukihiro "Matz" Matsumoto
07705b18e1
pre-commit autoupdate
2025-10-03 19:46:15 +09:00
John Bampton
4658c8a703
pre-commit update
...
https://pre-commit.com/#pre-commit-autoupdate
https://nodejs.org/en/download
2025-09-20 02:06:06 +10:00
John Bampton
a6b8400fc3
pre-commit config updates
...
https://nodejs.org/en/download
2025-08-05 04:37:24 +10:00
John Bampton
a35b7d537a
pre-commit: run markdown-link-check, oxipng, prettier manually
...
The "manual" stage in pre-commit refers to a specific hook stage designed for hooks that are not intended to run automatically during a standard git commit operation. Instead, these hooks are meant to be triggered explicitly by a user, typically when performing a full repository scan or a specific check.
This speeds up the standard `pre-commit run --all-files` run by not running these two hooks.
Both hooks are time consuming
Can run the manual hooks with:
`pre-commit run --all-files --hook-stage manual`
Add pre-commit manual stage run on CI to keep full coverage
2025-07-31 01:58:47 +10:00
John Bampton
943f1bff5c
pre-commit updates; make oxipng hook more robust
2025-07-09 21:13:11 +10:00
Yukihiro "Matz" Matsumoto
d29c9c5ef7
Merge pull request #6561 from jbampton/pre-commit-clean-up
2025-06-25 17:52:22 +09:00
Yukihiro "Matz" Matsumoto
84a4bd16ac
Merge pull request #6563 from jbampton/rubocop-indentation
2025-06-25 16:12:27 +09:00
John Bampton
62f4de0c01
Remove jumanjihouse pre-commit hooks no longer maintained
2025-06-25 12:11:06 +10:00
John Bampton
4e5db98128
pre-commit add rubocop with one rule spaces for indentation
...
https://docs.rubocop.org/rubocop/integration_with_other_tools.html#git-pre-commit-hook-integration-with-pre-commit
2025-06-25 12:02:35 +10:00
John Bampton
420a60ee9f
pre-commit updates and fix prettier entrypoint
...
https://nodejs.org/en/download
https://www.npmjs.com/package/prettier
prettier fix ups
2025-06-24 22:20:38 +10:00
John Bampton
f515669ce3
Add codespell config file .codespellrc
...
Add `.codespellrc` to the GitHub labeler
Can now run codespell from the command line standalone and it will use
our standard config file. Running codespell with pre-commit will also use this config.
Useful when regenerating the ignored words file on the command line.
https://github.com/codespell-project/codespell?tab=readme-ov-file#using-a-config-file
https://github.com/codespell-project/codespell?tab=readme-ov-file#pre-commit-hook
2025-05-09 20:54:27 +10:00
John Bampton
ddae958405
pre-commit: autoupdate and update node LTS version
...
https://nodejs.org/en
https://pre-commit.com/#pre-commit-autoupdate
2025-05-03 02:00:44 +10:00
Yukihiro "Matz" Matsumoto
9a0f96e617
pre-commit autoupdate
2025-04-16 22:34:27 +09:00
dearblue
40095bf755
Exclude the external project "lrama" from pre-commit
2025-04-08 22:11:32 +09:00
John Bampton
14f2e6db5a
pre-commit: update prettier to the latest version
...
https://www.npmjs.com/package/prettier
2025-03-29 16:31:58 +10:00
John Bampton
14de644234
Update pre-commit Node.js version to v22.14.0 LTS
2025-03-29 07:32:47 +10:00
John Bampton
c1a0a6193b
pre-commit autoupdate
2025-03-28 08:04:21 +10:00
John Bampton
1ae4f94844
Clean up and standardize the pre-commit config
2025-03-28 07:39:59 +10:00
Yukihiro "Matz" Matsumoto
a6848ca2cb
pre-commit autoupdate
2025-03-15 16:34:18 +09:00
Yukihiro "Matz" Matsumoto
1a026ba9aa
pre-commit: autoupdate
2025-03-07 17:17:46 +09:00
Yukihiro "Matz" Matsumoto
91a7bc53a6
.pre-commit-config.yml: pre-commit autoupdate
2025-01-21 13:07:44 +09:00
John Bampton
7fb6fdd4e2
Add more details to the pre-commit config
2024-11-25 22:49:30 +10:00
John Bampton
a7c947360e
[CI] Add prettier to pre-commit
...
Add `.prettierignore` and the `.prettierrc` config file. Prettier is currently targeting the `JSON`, `Markdown` and `YAML` files in the mruby repo.
Additional file types can be targetted with prettier via additional community plugins.
https://prettier.io/docs/en/
You can see all the languages that are supported on the homepage:
https://prettier.io/
This PR references a few other issues and PRs
We did have prettier running with pre-commit before that method was removed from prettier.
https://github.com/mruby/mruby/pull/6292
https://github.com/mruby/mruby/issues/6291
https://github.com/mruby/mruby/issues/6138
https://github.com/mruby/mruby/pull/5490
Perhaps we could add more npm software to pre-commit in future using new the `local` repo approach.
https://pre-commit.com/#repository-local-hooks
The best part is that it runs with pre-commit on our local machines on `git commit` and also when running `pre-commit run --all-files` or for example when running `make check`.
There were also some minor fixes / style changes in the pre-commit config to standardize casing.
https://www.npmjs.com/package/prettier?activeTab=readme
2024-11-20 14:51:11 +10:00
Yukihiro "Matz" Matsumoto
b4ab4cd7cf
Merge branch 'master' into add-pre-commit-hook-gitleaks
2024-10-17 02:33:23 -04:00
Yukihiro "Matz" Matsumoto
389740e1d2
Merge pull request #6377 from jbampton/add-pre-commit-hook-oxipng
2024-10-16 03:34:12 -04:00
John Bampton
42d3eb4b60
Add pre-commit hook gitleaks to detect and prevent hardcoded secrets
...
https://github.com/gitleaks/gitleaks
Adding another check/test to our pre-commit framework.
gitleaks is a popular tool that helps with security.
Removes the gitleaks check from the Super-Linter.
So now we can run gitleaks with pre-commit on `git commit`
2024-10-16 04:20:49 +10:00
John Bampton
e0a9a06c77
Add pre-commit hook pretty-format-json
...
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#pretty-format-json
From the official pre-commit team a minor feature to add.
We have one JSON file at `.github/linters/mlc_config.json`.
2024-10-16 03:56:19 +10:00
John Bampton
83040c50e7
Add pre-commit hook oxipng for lossless PNG compression
...
Oxipng is a multithreaded lossless PNG/APNG compression optimizer.
Lossless compression is a class of data compression that allows the original data to be perfectly reconstructed from the compressed data with no loss of information.
https://en.wikipedia.org/wiki/Lossless_compression
https://github.com/shssoichiro/oxipng?tab=readme-ov-file#git-integration-via-pre-commit
Oxipng is a multithreaded PNG optimizer written in Rust
https://pre-commit.com/index.html#rust
"pre-commit will bootstrap rust if it is not present."
2024-10-16 03:10:16 +10:00
John Bampton
95f58d8a98
Upgrade pre-commit min version; add hook; pre-commit autoupdate
...
https://github.com/pre-commit/pre-commit-hooks/releases/tag/v5.0.0
pre-commit-hooks now requires pre-commit>=3.2.0
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#check-illegal-windows-names
https://pre-commit.com/#pre-commit-autoupdate
refs pre-commit/pre-commit#2808
https://pre-commit.com/#top_level-default_stages
2024-10-11 03:32:16 +10:00
Yukihiro "Matz" Matsumoto
12264e33e5
Merge pull request #6361 from jbampton/add-pre-commit-hook-shellcheck
2024-09-24 09:44:25 +09:00
John Bampton
2adf60320d
Add pre-commit hook check-json
...
https://github.com/pre-commit/pre-commit-hooks?tab=readme-ov-file#check-json
Adds another check/test to our pre-commit framework for checking JSON files
We have one JSON file at `.github/linters/mlc_config.json`
2024-09-24 00:47:27 +10:00
John Bampton
6fe57ae44e
Add pre-commit hook shellcheck-py to check syntax of shell scripts
...
https://github.com/shellcheck-py/shellcheck-py
https://www.shellcheck.net/
https://github.com/koalaman/shellcheck
Remove bash/shell checking from the Super-Linter
2024-09-22 10:18:21 +10:00
John Bampton
6d749e92ed
Add pre-commit hook actionlint
...
Validate GitHub Actions with pre-commit.
Remove the Super-Linter GitHub Actions check.
It is more useful to run "actionlint" with pre-commit
since the hooks run on our local machines on git commit.
We also run pre-commit on GitHub.
Whereas the Super-Linter tests only run on GitHub.
https://github.com/rhysd/actionlint/blob/main/docs/usage.md#pre-commit
2024-09-22 08:51:42 +10:00
John Bampton
06becc3495
pre-commit autoupdate
2024-06-21 08:14:17 +10:00
John Bampton
bbb0dddc7e
Remove prettier from pre-commit
2024-06-21 08:14:17 +10:00
John Bampton
fef91724cb
pre-commit autoupdate
...
https://pre-commit.com/#pre-commit-autoupdate
2024-04-21 23:21:46 +10:00
Yukihiro "Matz" Matsumoto
24c60895cd
Merge pull request #6214 from jbampton/add-more-comments
...
Improve the `pre-commit` and `.github` YAML files
2024-03-26 11:12:06 +09:00