diff --git a/.github/workflows/jarl-check.yaml b/.github/workflows/jarl-check.yaml new file mode 100644 index 00000000..695c3353 --- /dev/null +++ b/.github/workflows/jarl-check.yaml @@ -0,0 +1,16 @@ +name: "Lint R Code With JARL" + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + - uses: etiennebacher/setup-jarl@v0.1.0 + with: + args: check . --fix --output-format github diff --git a/.lintr b/.lintr deleted file mode 100644 index c73850f1..00000000 --- a/.lintr +++ /dev/null @@ -1,2 +0,0 @@ -linters: linters_with_defaults(object_usage_linter = NULL, indentation_linter = NULL, return_linter = NULL) -encoding: "UTF-8" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e817b31e..b7bc1a5f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,12 +24,6 @@ repos: hooks: - id: uv-lock ##### - # R - - repo: https://github.com/lorenzwalthert/precommit - rev: v0.4.3.9019 - hooks: - - id: lintr - ##### # Bash - repo: https://github.com/scop/pre-commit-shfmt rev: v3.12.0-2 diff --git a/jarl.toml b/jarl.toml new file mode 100644 index 00000000..56661fee --- /dev/null +++ b/jarl.toml @@ -0,0 +1,3 @@ +[lint] +default-exclude = true +assignment = "<-"