build-cran-binaries/.pre-commit-config.yaml
automation-bot d3f24c89df
All checks were successful
ci/crow/cron/process-updates/16 Pipeline was successful
chore(deps): update pre-commit hook editorconfig-checker/editorconfig-checker to v4 (#197)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [editorconfig-checker/editorconfig-checker](https://github.com/editorconfig-checker/editorconfig-checker) | repository | major | `v3.11.3` → `v4.0.1` |

Note: The `pre-commit` manager in Renovate is not supported by the `pre-commit` maintainers or community. Please do not report any problems there, instead [create a Discussion in the Renovate repository](https://github.com/renovatebot/renovate/discussions/new) if you have any questions.

---

### Release Notes

<details>
<summary>editorconfig-checker/editorconfig-checker (editorconfig-checker/editorconfig-checker)</summary>

### [`v4.0.1`](https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v4.0.1)

[Compare Source](https://github.com/editorconfig-checker/editorconfig-checker/compare/v4.0.0...v4.0.1)

##### Bug Fixes

- bump golang.org/x/mod to v0.40.0 ([3d2215c](3d2215c10a))
- **ci:** build docker images for all our platforms ([a34a6ee](a34a6eeac7))
- update pre-commit-config to use v4 of our repo ([fcd68bf](fcd68bffda))

### [`v4.0.0`](https://github.com/editorconfig-checker/editorconfig-checker/releases/tag/v4.0.0)

[Compare Source](https://github.com/editorconfig-checker/editorconfig-checker/compare/v3.11.3...v4.0.0)

##### ⚠ BREAKING CHANGES

- internalize our packages ([#&#8203;619](https://github.com/editorconfig-checker/editorconfig-checker/issues/619))<br>It will no longer be possible to import our internal packages in your code. If you rely on one of our packages please let us know by opening an issue.
- migrate to goreleaser dockers\_v2. ([#&#8203;617](https://github.com/editorconfig-checker/editorconfig-checker/issues/617))<br>This means we stop publishing the arch-suffixed images like `3.11.2-amd64` or `3.11.2-arm64v8`. All these architectures are still provided in the multiarch tag `3.11.2`.
- rename ec to editorconfig-checker ([#&#8203;371](https://github.com/editorconfig-checker/editorconfig-checker/issues/371))
- `.ecrc` is no longer discovered as a default config file name. Rename `.ecrc` to `.editorconfig-checker.json`, or pass the file explicitly with `--config .ecrc`.
- Docker image tags no longer carry a leading `v`. Pull `3.12.0`, `3.12` and `3` instead of `v3.12.0`, `v3.12` and `v3`
- the deprecated `SpacesAftertabs` configuration key has been removed, use `SpacesAfterTabs` instead.
- stop accepting latin1 files as utf-8. ([#&#8203;598](https://github.com/editorconfig-checker/editorconfig-checker/issues/598))<br>Previously `charset=utf-8` was satisfied with files encoded as `latin1`. While most of the `latin1` range is identical to `utf-8`, not all is. If you request `utf-8` but have `latin1` encoded files expect these files to be reported as violations now.

##### Features

- add safe EditorConfig autofixes ([#&#8203;612](https://github.com/editorconfig-checker/editorconfig-checker/issues/612)) ([2f4962c](2f4962c596))
- auto-detect `github-actions` output format in CI ([#&#8203;606](https://github.com/editorconfig-checker/editorconfig-checker/issues/606)) ([271c500](271c500a31))
- remove support for the deprecated `.ecrc` config file name ([#&#8203;603](https://github.com/editorconfig-checker/editorconfig-checker/issues/603)) ([2062751](2062751696))

##### Bug Fixes

- add missing space in wrong indentation type error message ([#&#8203;610](https://github.com/editorconfig-checker/editorconfig-checker/issues/610)) ([e0f1b56](e0f1b561a2))
- allow builds with Go 1.26 ([#&#8203;615](https://github.com/editorconfig-checker/editorconfig-checker/issues/615)) ([343018a](343018a4a3))
- consolidate error blocks that are interleaved with other errors ([#&#8203;601](https://github.com/editorconfig-checker/editorconfig-checker/issues/601)) ([76b6313](76b6313bc2))
- correct end line in codeclimate formatter output ([#&#8203;602](https://github.com/editorconfig-checker/editorconfig-checker/issues/602)) ([2476e7c](2476e7c671))
- correct the -disable-end-of-line flag description ([#&#8203;600](https://github.com/editorconfig-checker/editorconfig-checker/issues/600)) ([1615efc](1615efcaed))
- drop a path whose content type could not be read ([#&#8203;599](https://github.com/editorconfig-checker/editorconfig-checker/issues/599)) ([46995b1](46995b1db0))
- handle `unset` for `end_of_line` and `insert_final_newline` ([#&#8203;594](https://github.com/editorconfig-checker/editorconfig-checker/issues/594)) ([123ba31](123ba319dc)), closes [#&#8203;580](https://github.com/editorconfig-checker/editorconfig-checker/issues/580)
- remove ambiguity between potential folder and file matches ([#&#8203;611](https://github.com/editorconfig-checker/editorconfig-checker/issues/611)) ([4c4f7d4](4c4f7d4c30))
- remove leading `v` from Docker image tags ([#&#8203;607](https://github.com/editorconfig-checker/editorconfig-checker/issues/607)) ([3827a6c](3827a6c595))
- remove retired goreportcard badge ([2a9dd32](2a9dd32f6e))
- stop accepting latin1 files as utf-8. ([#&#8203;598](https://github.com/editorconfig-checker/editorconfig-checker/issues/598))\<br>Previously `charset=utf-8` was satisfied with files encoded as `latin1`. While most of the `latin1` range is identical to `utf-8`, not all is. If you request `utf-8` but have `latin1` encoded files expect these files to be reported as violations now. ([4d84a77](4d84a778c9))
- typo in config, `SpacesAftertabs` => `SpacesAfterTabs` ([#&#8203;604](https://github.com/editorconfig-checker/editorconfig-checker/issues/604)) ([bbc3f03](bbc3f03507))

##### Miscellaneous Chores

- internalize our packages ([#&#8203;619](https://github.com/editorconfig-checker/editorconfig-checker/issues/619))\<br>It will no longer be possible to import our internal packages in your code. If you rely on one of our packages please let us know by opening an issue. ([d42bcb7](d42bcb7af0))
- rename ec to editorconfig-checker ([#&#8203;371](https://github.com/editorconfig-checker/editorconfig-checker/issues/371)) ([0e3b27f](0e3b27f7e2))

##### Continuous Integration

- migrate to goreleaser dockers\_v2. ([#&#8203;617](https://github.com/editorconfig-checker/editorconfig-checker/issues/617))\<br>This means we stop publishing the arch-suffixed images like `3.11.2-amd64` or `3.11.2-arm64v8`. All these architectures are still provided in the multiarch tag `3.11.2`. ([d4c1442](d4c14421f8))

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`)
- Automerge
  - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yODMuMCIsInVwZGF0ZWRJblZlciI6IjQzLjI4OC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: #197
2026-09-04 09:51:46 +00:00

60 lines
2 KiB
YAML

# cSpell:ignore autofix autoupdate
# Excluded: verbatim GPL license and auxiliary shell scripts with intentional
# in-string formatting (reformatting would corrupt their output).
exclude: |
(?x)^(
LICENSE\.md|
benchmark/|
docker/reprex/
)
# The `^local/patches/.*\.patch$` excludes below keep unified diffs byte-exact:
# a context line for a blank line is a single space, and stripping it (or
# appending a newline) makes `git apply` reject the patch, which surfaces as
# "patch did not apply cleanly" at build time rather than as a lint failure
# here. The exclusions are per-hook, not global, so `validate patch registry`
# still runs when a patch changes.
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: end-of-file-fixer
exclude: ^local/patches/.*\.patch$
- id: trailing-whitespace
exclude: ^local/patches/.*\.patch$
args:
- --markdown-linebreak-ext=md
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.23.2
hooks:
- id: markdownlint-cli2
- repo: https://github.com/rbubley/mirrors-prettier
rev: v3.9.6
hooks:
- id: prettier
- repo: https://github.com/posit-dev/air-pre-commit
rev: 0.11.0
hooks:
- id: air-format
- repo: https://github.com/editorconfig-checker/editorconfig-checker
rev: v4.0.1
hooks:
- id: editorconfig-checker
exclude: ^local/patches/.*\.patch$
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.38.0
hooks:
- id: yamllint
args: [--strict, -c=.yamllint.yaml]
- repo: local
hooks:
- id: yaml-file-extension
name: Check if YAML files has *.yaml extension.
entry: YAML filenames must have .yaml extension.
language: fail
files: .yml$
- id: validate-patches
name: validate patch registry
entry: Rscript local/validate-patches.R
language: system
files: ^local/(patches/|validate-patches\.R$)
pass_filenames: false