Skip to content

Commit

Permalink
build(deps): Bump pre-commit autoupdate
Browse files Browse the repository at this point in the history
Also add pyjson5 as an additional dependency for check-jsonschema pre-commit;
I'm hoping that this will fix the following error seen (only) on CI (not locally):

Validate Renovate Config.................................................Failed
- hook id: check-renovate
- exit code: 1

Several files failed to parse.
  BadFileTypeError: cannot parse .renovaterc.json5 because support is missing for json5

  check-jsonschema can only parse json5 files when a json5 parser is installed

  If you are running check-jsonschema as an installed python package, either
      pip install json5
  or
      pip install pyjson5

  If you are running check-jsonschema as a pre-commit hook, set
      additional_dependencies: ['json5']
  or
      additional_dependencies: ['pyjson5']

    in "/home/runner/.cache/pre-commit/repothldx688/py_env-python3/lib/python3.12/site-packages/check_jsonschema/instance_loader.py", line 48
    >>> data: t.Any = self._parsers.parse_data_with_path(

I've chosen https://github.com/Kijewski/pyjson5 instead of https://github.com/dpranke/pyjson5 because the former seems to slower than latter with cython.
  • Loading branch information
vorburger committed Dec 11, 2024
1 parent e114ae0 commit a0402c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
17 changes: 10 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-case-conflict
Expand Down Expand Up @@ -87,7 +87,7 @@ repos:
- --use-current-year

- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.8
rev: v19.1.5
hooks:
- id: clang-format
# clang-format can also do e.g. *.java and *.json but we only want proto
Expand All @@ -100,7 +100,8 @@ repos:

- repo: https://github.com/yoheimuta/protolint
# This version must be kept in the sync with the one in tools/protolint/install.bash
rev: v0.50.3
# NB: v0.51.0 requires go v1.23 (so Fedora 41 not 40; TODO check GitHub Runner...)
rev: v0.50.5
hooks:
- id: protolint

Expand All @@ -116,13 +117,14 @@ repos:
args: [--autofix, --aosp, --google-java-formatter-version=1.25.1]

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.13.0
rev: v0.16.0
hooks:
- id: markdownlint-cli2
exclude: (^.github/|test/|docs/use/docgen/docgen.md)

# Until https://github.com/DavidAnson/markdownlint/issues/121
- repo: https://github.com/tcort/markdown-link-check
# TODO v3.13.6 causes https://github.com/tcort/markdown-link-check/issues/387 ...
rev: v3.12.2
hooks:
- id: markdown-link-check
Expand All @@ -131,7 +133,7 @@ repos:

# Alternative: https://github.com/bazelbuild/buildtools/blob/master/buildifier/README.md
- repo: https://github.com/keith/pre-commit-buildifier
rev: 6.4.0.1
rev: 7.3.1.1
hooks:
- id: buildifier
args: &args
Expand Down Expand Up @@ -169,7 +171,7 @@ repos:
exclude: mvnw

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.29.0
rev: 0.30.0
hooks:
- id: check-github-actions
args: ["--verbose"]
Expand All @@ -179,6 +181,7 @@ repos:
args: ["--verbose"]
- id: check-renovate
args: ["--verbose"]
additional_dependencies: ["pyjson5==1.6.7"]
- id: check-metaschema
files: \.schema\.json$
args: ["--verbose"]
Expand All @@ -197,7 +200,7 @@ repos:

# https://editorconfig.org check should run AFTER all of the formatters (above)
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
rev: 2.7.3
rev: 3.0.3
hooks:
- id: editorconfig-checker
exclude: mvnw
3 changes: 1 addition & 2 deletions docs/concepts/tika.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@
Enola in addition to RDF 🐢 TTL etc. can also read many other common file formats
(see [`enola info`](../use/info/index.md)).
This is courtesy of [Apache Tika](https://tika.apache.org),
see its [Supported Document Formats
](https://tika.apache.org/3.0.0-BETA2/formats.html).
see its [Supported Document Formats](https://tika.apache.org/3.0.0-BETA2/formats.html).

All of these formats are supported e.g. for conversions with [Rosetta](../use/rosetta/index.md) but also `--load` for [Get](../use/get/index.md), [DocGen](../use/docgen/index.md) and [Server](../use/server/index.md), etc.

Expand Down
2 changes: 1 addition & 1 deletion tools/protolint/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ set -euo pipefail

if ! [ -x "$(command -v "$(go env GOPATH)/bin/protolint")" ]; then
# This version must be kept in the sync with the one in .pre-commit-config.yaml
go install github.com/yoheimuta/protolint/cmd/protolint@v0.47.5
go install github.com/yoheimuta/protolint/cmd/protolint@v0.50.5
fi

0 comments on commit a0402c9

Please sign in to comment.