Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/java.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
with:
python-version: 3.14
- name: Install dependencies
run: python -m pip install pre-commit
run: python -m pip install prek uv
- name: Cache pre-commit environments
uses: actions/cache@v5
with:
path: ~/.cache/pre-commit
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
path: ~/.cache/prek
key: prek|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit hooks
run: pre-commit run -a --show-diff-on-failure --color=always
run: prek run -a --show-diff-on-failure --color=always

build:
name: Build
Expand Down
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# priorities:
# 0 - read-only
# 1000 - mutually non-conflicting fixers
# none - other fixers

# exclude vendored files
exclude: '^(COPYING\.LESSER)$'

Expand All @@ -6,9 +11,13 @@ repos:
rev: v6.0.0
hooks:
- id: check-added-large-files
priority: 0
- id: check-merge-conflict
priority: 0
- id: check-vcs-permalinks
priority: 0
- id: check-yaml
priority: 0
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
Expand All @@ -19,18 +28,22 @@ repos:
hooks:
- id: codespell
name: Check spelling with codespell
priority: 0
additional_dependencies:
- tomli # Python < 3.11

- repo: meta
hooks:
- id: check-hooks-apply
priority: 0
- id: check-useless-excludes
priority: 0

- repo: local
hooks:
- id: mkmaintainer
name: Sync maintainer issue templates
priority: 1000
entry: .github/maintainer/mkmaintainer.py
files: .github/maintainer/
language: python
Expand Down