Skip to content

Commit ddb6722

Browse files
committed
 Getting R pre-commit hooks working
1 parent 3cc264b commit ddb6722

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
with:
2020
r-version: 'release'
2121
use-public-rspm: true
22-
- uses: pre-commit/[email protected]
22+
- uses: pre-commit/[email protected]

.pre-commit-config.yaml

+6-3
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ repos:
2424
hooks:
2525
- id: markdownlint
2626
- repo: https://github.com/lorenzwalthert/precommit
27-
# These are R specific tools to format and lint the code and check for common errors
28-
rev: v0.4.3.9003
29-
hooks:
27+
# These are R specific tools to format and lint the code and check for common errors
28+
# Note that this currently points to a specific GitHub commit to avoid an issue with
29+
# Rcpp: https://github.com/lorenzwalthert/precommit/issues/612 but should be updated
30+
# when that issue gets resolved in a published version.
31+
rev: dcd2a60
32+
hooks:
3033
- id: style-files
3134
args: [--style_pkg=styler, --indent_by=4, --style_fun=tidyverse_style]
3235
- id: lintr

.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
],
1212
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
1313
"unwantedRecommendations": []
14-
}
14+
}

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ version = "0.1.0"
2020

2121
[tool.poetry.dependencies]
2222
numpy = "~2.1" # Pinning numpy less than 2.2.0 until this resolves: https://github.com/numpy/numpy/issues/27957
23-
python = ">=3.10,<3.13"
23+
python = ">=3.10,<3.13"
2424
xarray = "^2025.1.1"
2525
pre-commit = "^4.1.0"
2626
radian = "^0.6.13"

0 commit comments

Comments
 (0)