Skip to content

Commit

Permalink
Merge branch 'main' into 05_explore_copykat
Browse files Browse the repository at this point in the history
  • Loading branch information
jashapiro authored Oct 16, 2024
2 parents 231e8f2 + b6cf6e0 commit 117bd02
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ It is not meant to be run as a standalone action.

## Repository maintenance

* `pre-commit.yml` runs pre-commit checks defined by the `.pre-commit-config.yaml` file.
* `spellcheck.yml` performs spell checking of markdown and R Markdown documents.
* `code-styling.yml` performs code styling using `styler` and `ruff`.
* This workflow also consumes `modules_code-styling.txt` to determine which modules to style.
Expand Down
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Pre-commit check
on:
pull_request:
branches:
- main
- feature/*

jobs:
pre-commit:
if: github.repository_owner == 'AlexsLemonade'
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- uses: pre-commit/[email protected]
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- name: General file size limit
id: check-added-large-files
Expand All @@ -23,7 +23,7 @@ repos:
- id: check-case-conflict
- id: check-merge-conflict
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
rev: v8.20.1
hooks:
- id: gitleaks
- repo: local
Expand Down

0 comments on commit 117bd02

Please sign in to comment.