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
1 change: 0 additions & 1 deletion .github/actions/pre-commit/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ runs:
with:
path: |
~/.cache/pre-commit
~/.cache/R/renv
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- run: SKIP=runic pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
shell: bash
3 changes: 0 additions & 3 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- uses: ./.github/actions/pre-commit
runic:
runs-on: ubuntu-latest
Expand Down
33 changes: 5 additions & 28 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,15 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
#####
# Python
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.10
hooks:
# Sort imports
- id: ruff
args: ['check', '--select', 'I', '--fix']
# Run the linter
- id: ruff
args: ['--line-length', '79']
# Run the formatter
- id: ruff-format
args: ['--line-length', '79']
#####
# R
- repo: https://github.com/lorenzwalthert/precommit
rev: v0.4.3.9009
hooks:
- id: lintr
#####
# Java
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
rev: v2.14.0
hooks:
- id: pretty-format-java
args: [--aosp,--autofix]

#####
# Secrets
- repo: https://github.com/Yelp/detect-secrets
rev: v1.5.0
hooks:
- id: detect-secrets
args: ['--baseline', '.secrets.baseline']
exclude: package.lock.json
# NOTE: This is a Julia package. Julia formatting is handled by the separate
# `runic` CI job (fredrikekre/runic-action). The previous Python (ruff), R
# (lintr) and Java (pretty-format-java) hooks were removed: there are no such
# source files in this repo, and the R `lintr` hook in particular bootstrapped
# an renv library on every cold cache, which dominated pre-commit CI runtime.
Loading