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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,10 @@ hooks](modules/pre-commit.nix).
- [sort-requirements-txt](https://github.com/pre-commit/pre-commit-hooks/blob/main/pre_commit_hooks/requirements_txt_fixer.py)
- [uv](https://github.com/astral-sh/uv)

### R

- [air](https://github.com/posit-dev/air)

### Rego (Open Policy Agent)

- [regal](https://www.openpolicyagent.org/projects/regal)
Expand Down
9 changes: 9 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2599,6 +2599,15 @@ in
package = tools.action-validator;
entry = "${hooks.action-validator.package}/bin/action-validator";
};
air =
{
name = "air";
description = "An extremely fast R code formatter.";
package = tools.air;
entry = "${hooks.air.package}/bin/air format";
files = "\\.[rR]$";
types = [ "file" "r" ];
};
alejandra =
{
name = "alejandra";
Expand Down
2 changes: 2 additions & 0 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
, placeholder
, actionlint
, action-validator
, air-formatter
, alejandra
, ansible-lint
, biome
Expand Down Expand Up @@ -127,6 +128,7 @@ let
};
in
{
air = air-formatter;
clang-tools = llvmPackages_latest.clang-tools;
inherit
actionlint
Expand Down