Skip to content

Pre commit

Pre commit #8

Workflow file for this run

name: Pre-commit
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install styler
run: |
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/latest"))
install.packages("styler", type="both")
shell: Rscript {0}
- name: Run pre-commit hooks
uses: pre-commit/[email protected]