Skip to content

Commit

Permalink
[DOCS] Upgrade pre-commit min version; add hook; pre-commit autoupdate (
Browse files Browse the repository at this point in the history
#1614)

* [DOCS] 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

* pre-commit migrate-config
  • Loading branch information
jbampton authored Oct 8, 2024
1 parent d37847e commit 82afeaf
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
# https://pre-commit.com/#installation
default_stages: [commit, push]
default_stages: [pre-commit, pre-push]
default_language_version:
# force all unspecified Python hooks to run python3
python: python3
minimum_pre_commit_version: '2.18.1'
minimum_pre_commit_version: '3.2.0'
repos:
- repo: meta
hooks:
- id: identity
- id: check-hooks-apply
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.8.0
rev: 24.10.0
hooks:
- id: black-jupyter
- repo: https://github.com/codespell-project/codespell
Expand All @@ -23,13 +23,14 @@ repos:
args: [--ignore-words=.github/linters/codespell.txt]
exclude: ^docs/image|^spark/common/src/test/resources|^docs/usecases|^tools/maven/scalafmt
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-illegal-windows-names
# - id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
Expand All @@ -56,7 +57,7 @@ repos:
args: [--markdown-linebreak-ext=md]
exclude: ^docs-overrides/main\.html$|\.Rd$
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.41.0
rev: v0.42.0
hooks:
- id: markdownlint
name: Run markdownlint
Expand Down

0 comments on commit 82afeaf

Please sign in to comment.