Skip to content

Commit

Permalink
Adding pre-commit as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Oct 7, 2024
1 parent af1ea4c commit 6807d9d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:

jobs:
pre-commit:
name: Pre-commit
runs-on: ubuntu-latest

steps:
Expand All @@ -19,5 +20,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3

- name: Install styler
run: |
options(repos = c(CRAN = "https://packagemanager.posit.co/cran/latest"))
install.packages("styler")
shell: Rscript --vanilla -e {0}

- name: Run pre-commit hooks
uses: pre-commit/[email protected]

0 comments on commit 6807d9d

Please sign in to comment.