Skip to content

Commit

Permalink
Add pre-commit remotely
Browse files Browse the repository at this point in the history
  • Loading branch information
ma595 committed Nov 9, 2024
1 parent ce1123c commit f56f60e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Pre-commit
on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11' # Specify the Python version you need

- name: Install pre-commit
run: |
pip install pre-commit
- name: Run pre-commit hooks
run: |
pre-commit run --all-files

0 comments on commit f56f60e

Please sign in to comment.