opiproject / opi-poc

Developer Platform and PoC Work
Apache License 2.0
17 stars 30 forks source link

chore(deps): update pre-commit hook pre-commit/pre-commit-hooks to v4 #811

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
pre-commit/pre-commit-hooks repository major v3.2.0 -> v4.4.0

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 if you have any questions.


Release Notes

pre-commit/pre-commit-hooks (pre-commit/pre-commit-hooks) ### [`v4.4.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v4.4.0): pre-commit-hooks v4.4.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.3.0...v4.4.0) #### Features - forbid-submodules: new hook which outright bans submodules. - [#​815](https://togithub.com/pre-commit/pre-commit-hooks/issues/815) PR by [@​asottile](https://togithub.com/asottile). - [#​707](https://togithub.com/pre-commit/pre-commit-hooks/issues/707) issue by [@​ChiefGokhlayeh](https://togithub.com/ChiefGokhlayeh). ### [`v4.3.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v4.3.0): pre-commit-hooks v4.3.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.2.0...v4.3.0) ##### Features - `check-executables-have-shebangs`: use `git config core.fileMode` to determine if it should query `git`. - [#​730](https://togithub.com/pre-commit/pre-commit-hooks/issues/730) PR by [@​Kurt-von-Laven](https://togithub.com/Kurt-von-Laven). - `name-tests-test`: add `--pytest-test-first` test convention. - [#​779](https://togithub.com/pre-commit/pre-commit-hooks/issues/779) PR by [@​asottile](https://togithub.com/asottile). ##### Fixes - `check-shebang-scripts-are-executable`: update windows instructions. - [#​774](https://togithub.com/pre-commit/pre-commit-hooks/issues/774) PR by [@​mdeweerd](https://togithub.com/mdeweerd). - [#​770](https://togithub.com/pre-commit/pre-commit-hooks/issues/770) issue by [@​mdeweerd](https://togithub.com/mdeweerd). - `check-toml`: use stdlib `tomllib` when available. - [#​771](https://togithub.com/pre-commit/pre-commit-hooks/issues/771) PR by [@​DanielNoord](https://togithub.com/DanielNoord). - [#​755](https://togithub.com/pre-commit/pre-commit-hooks/issues/755) issue by [@​sognetic](https://togithub.com/sognetic). - `check-added-large-files`: don't run on non-file `stages`. - [#​778](https://togithub.com/pre-commit/pre-commit-hooks/issues/778) PR by [@​asottile](https://togithub.com/asottile). - [#​777](https://togithub.com/pre-commit/pre-commit-hooks/issues/777) issue by [@​skyj](https://togithub.com/skyj). ### [`v4.2.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v4.2.0): pre-commit-hooks v4.2.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.1.0...v4.2.0) ##### Features - `name-tests-test`: updated display text. - [#​713](https://togithub.com/pre-commit/pre-commit-hooks/issues/713) PR by [@​asottile](https://togithub.com/asottile). - `check-docstring-first`: make output more parsable. - [#​748](https://togithub.com/pre-commit/pre-commit-hooks/issues/748) PR by [@​asottile](https://togithub.com/asottile). - `check-merge-conflict`: make output more parsable. - [#​748](https://togithub.com/pre-commit/pre-commit-hooks/issues/748) PR by [@​asottile](https://togithub.com/asottile). - `debug-statements`: make output more parsable. - [#​748](https://togithub.com/pre-commit/pre-commit-hooks/issues/748) PR by [@​asottile](https://togithub.com/asottile). ##### Fixes - `check-merge-conflict`: fix detection of `======` conflict marker on windows. - [#​748](https://togithub.com/pre-commit/pre-commit-hooks/issues/748) PR by [@​asottile](https://togithub.com/asottile). ##### Updating - Drop python<3.7. - [#​719](https://togithub.com/pre-commit/pre-commit-hooks/issues/719) PR by [@​asottile](https://togithub.com/asottile). - Changed default branch from `master` to `main`. - [#​744](https://togithub.com/pre-commit/pre-commit-hooks/issues/744) PR by [@​asottile](https://togithub.com/asottile). ### [`v4.1.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v4.1.0): pre-commit-hooks v4.1.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0) ##### Features - `debug-statements`: add `pdbr` debugger. - [#​614](https://togithub.com/pre-commit/pre-commit-hooks/issues/614) PR by [@​cansarigol](https://togithub.com/cansarigol). - `detect-private-key`: add detection for additional key types. - [#​658](https://togithub.com/pre-commit/pre-commit-hooks/issues/658) PR by [@​ljmf00](https://togithub.com/ljmf00). - `check-executables-have-shebangs`: improve messaging on windows. - [#​689](https://togithub.com/pre-commit/pre-commit-hooks/issues/689) PR by [@​pujitm](https://togithub.com/pujitm). - [#​686](https://togithub.com/pre-commit/pre-commit-hooks/issues/686) issue by [@​jmerdich](https://togithub.com/jmerdich). - `check-added-large-files`: support `--enforce-all` with `git-lfs`. - [#​674](https://togithub.com/pre-commit/pre-commit-hooks/issues/674) PR by [@​amartani](https://togithub.com/amartani). - [#​560](https://togithub.com/pre-commit/pre-commit-hooks/issues/560) issue by [@​jeremy-coulon](https://togithub.com/jeremy-coulon). ##### Fixes - `check-case-conflict`: improve performance. - [#​626](https://togithub.com/pre-commit/pre-commit-hooks/issues/626) PR by [@​guykisel](https://togithub.com/guykisel). - [#​625](https://togithub.com/pre-commit/pre-commit-hooks/issues/625) issue by [@​guykisel](https://togithub.com/guykisel). - `forbid-new-submodules`: fix false-negatives for `pre-push`. - [#​619](https://togithub.com/pre-commit/pre-commit-hooks/issues/619) PR by [@​m-khvoinitsky](https://togithub.com/m-khvoinitsky). - [#​609](https://togithub.com/pre-commit/pre-commit-hooks/issues/609) issue by [@​m-khvoinitsky](https://togithub.com/m-khvoinitsky). - `check-merge-conflict`: fix execution in git worktrees. - [#​662](https://togithub.com/pre-commit/pre-commit-hooks/issues/662) PR by [@​errsyn](https://togithub.com/errsyn). - [#​638](https://togithub.com/pre-commit/pre-commit-hooks/issues/638) issue by [@​daschuer](https://togithub.com/daschuer). ##### Misc. - Normalize case of hook names and descriptions. - [#​671](https://togithub.com/pre-commit/pre-commit-hooks/issues/671) PR by [@​dennisroche](https://togithub.com/dennisroche). - [#​673](https://togithub.com/pre-commit/pre-commit-hooks/issues/673) PR by [@​revolter](https://togithub.com/revolter). ### [`v4.0.1`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v4.0.1): pre-commit-hooks v4.0.1 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v4.0.0...v4.0.1) ##### Fixes - `check-shebang-scripts-are-executable` fix entry point. - [#​602](https://togithub.com/pre-commit/pre-commit-hooks/issues/602) issue by [@​Person-93](https://togithub.com/Person-93). - [#​603](https://togithub.com/pre-commit/pre-commit-hooks/issues/603) PR by [@​scop](https://togithub.com/scop). ### [`v4.0.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v4.0.0): pre-commit-hooks v4.0.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v3.4.0...v4.0.0) ##### Features - `check-json`: report duplicate keys. - [#​558](https://togithub.com/pre-commit/pre-commit-hooks/issues/558) PR by [@​AdityaKhursale](https://togithub.com/AdityaKhursale). - [#​554](https://togithub.com/pre-commit/pre-commit-hooks/issues/554) issue by [@​adamchainz](https://togithub.com/adamchainz). - `no-commit-to-branch`: add `main` to default blocked branches. - [#​565](https://togithub.com/pre-commit/pre-commit-hooks/issues/565) PR by [@​ndevenish](https://togithub.com/ndevenish). - `check-case-conflict`: check conflicts in directory names as well. - [#​575](https://togithub.com/pre-commit/pre-commit-hooks/issues/575) PR by [@​slsyy](https://togithub.com/slsyy). - [#​70](https://togithub.com/pre-commit/pre-commit-hooks/issues/70) issue by [@​andyjack](https://togithub.com/andyjack). - `check-vcs-permalinks`: forbid other branch names. - [#​582](https://togithub.com/pre-commit/pre-commit-hooks/issues/582) PR by [@​jack1142](https://togithub.com/jack1142). - [#​581](https://togithub.com/pre-commit/pre-commit-hooks/issues/581) issue by [@​jack1142](https://togithub.com/jack1142). - `check-shebang-scripts-are-executable`: new hook which ensures shebang'd scripts are executable. - [#​545](https://togithub.com/pre-commit/pre-commit-hooks/issues/545) PR by [@​scop](https://togithub.com/scop). ##### Fixes - `check-executables-have-shebangs`: Short circuit shebang lookup on windows. - [#​544](https://togithub.com/pre-commit/pre-commit-hooks/issues/544) PR by [@​scop](https://togithub.com/scop). - `requirements-txt-fixer`: Fix comments which have indentation - [#​549](https://togithub.com/pre-commit/pre-commit-hooks/issues/549) PR by [@​greshilov](https://togithub.com/greshilov). - [#​548](https://togithub.com/pre-commit/pre-commit-hooks/issues/548) issue by [@​greshilov](https://togithub.com/greshilov). - `pretty-format-json`: write to stdout using UTF-8 encoding. - [#​571](https://togithub.com/pre-commit/pre-commit-hooks/issues/571) PR by [@​jack1142](https://togithub.com/jack1142). - [#​570](https://togithub.com/pre-commit/pre-commit-hooks/issues/570) issue by [@​jack1142](https://togithub.com/jack1142). - Use more inclusive language. - [#​599](https://togithub.com/pre-commit/pre-commit-hooks/issues/599) PR by [@​asottile](https://togithub.com/asottile). ##### Breaking changes - Remove deprecated hooks: `flake8`, `pyflakes`, `autopep8-wrapper`. - [#​597](https://togithub.com/pre-commit/pre-commit-hooks/issues/597) PR by [@​asottile](https://togithub.com/asottile). ### [`v3.4.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v3.4.0): pre-commit-hooks v3.4.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v3.3.0...v3.4.0) ##### Features - `file-contents-sorter`: Add `--unique` argument - [#​524](https://togithub.com/pre-commit/pre-commit-hooks/issues/524) PR by [@​danielhoherd](https://togithub.com/danielhoherd). - `check-vcs-permalinks`: Add `--additional-github-domain` option - [#​530](https://togithub.com/pre-commit/pre-commit-hooks/issues/530) PR by [@​youngminz](https://togithub.com/youngminz). - New hook: `destroyed-symlinks` to detect unintentional symlink-breakages on windows. - [#​511](https://togithub.com/pre-commit/pre-commit-hooks/issues/511) PR by [@​m-khvoinitsky](https://togithub.com/m-khvoinitsky). ### [`v3.3.0`](https://togithub.com/pre-commit/pre-commit-hooks/releases/tag/v3.3.0): pre-commit-hooks v3.3.0 [Compare Source](https://togithub.com/pre-commit/pre-commit-hooks/compare/v3.2.0...v3.3.0) ##### Features - `file-contents-sorter`: add `--ignore-case` option for case-insensitive sorting - [#​514](https://togithub.com/pre-commit/pre-commit-hooks/issues/514) PR by [@​Julian](https://togithub.com/Julian). - `check-added-large-files`: add `--enforce-all` option to check non-added files as well - [#​519](https://togithub.com/pre-commit/pre-commit-hooks/issues/519) PR by [@​mshawcroft](https://togithub.com/mshawcroft). - [#​518](https://togithub.com/pre-commit/pre-commit-hooks/issues/518) issue by [@​mshawcroft](https://togithub.com/mshawcroft). - `fix-byte-order-marker`: new hook which fixes UTF-8 byte-order marker. - [#​522](https://togithub.com/pre-commit/pre-commit-hooks/issues/522) PR by [@​jgowdy](https://togithub.com/jgowdy). ##### Deprecations - `check-byte-order-marker` is now deprecated for `fix-byte-order-marker`

Configuration

šŸ“… Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

šŸš¦ 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.



This PR has been generated by Mend Renovate. View repository job log here.