Skip to content

Commit

Permalink
Merge pull request #1152 from esc/gha/pre-commit
Browse files Browse the repository at this point in the history
adding pre-commit workflow
  • Loading branch information
dbast authored Feb 6, 2025
2 parents ae3d178 + a7fbfa1 commit 149af85
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: lint with pre-commit

on:
pull_request:
push:
branches:
- main
tags:
- '*'

jobs:
pre-commit:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
auto-activate-base: false
- name: Install pre-commit
run: conda install -c conda-forge pre-commit
- name: Lint code with pre-commit
run: pre-commit run --verbose --all-files

0 comments on commit 149af85

Please sign in to comment.