Skip to content

Commit 3c88a02

Browse files
R is now supported
1 parent 9657c4e commit 3c88a02

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ the script, you can expect the passed command line arguments to be all options,
1212
finally the files that should be processed with the hook.
1313

1414
For the scripts to become a hook, they need to be *registered* in
15-
[`.pre-commit-hooks.yaml`](https://github.com/lorenzwalthert/precommit/blob/main/.pre-commit-hooks.yaml). As R is not currently a supported language of
16-
pre-commit (https://github.com/pre-commit/pre-commit/issues/926), most hooks use
17-
`language: script` and then a shebang in the `entrypoint` script.
15+
[`.pre-commit-hooks.yaml`](https://github.com/lorenzwalthert/precommit/blob/main/.pre-commit-hooks.yaml). As of pre-commit 2.11, R is a [supported language of
16+
pre-commit](https://pre-commit.com/#r). Hence, it should have `language: r` in `.pre-commit-hooks.yaml` and then (for compatibility) a shebang in the `entrypoint` script.
1817

1918
# Testing hooks
2019

0 commit comments

Comments
 (0)