Skip to content

Commit

Permalink
Github Action: Trigger pre-commit hooks (#12)
Browse files Browse the repository at this point in the history
> This is blocked until
#11 is merged.

* Runs pre-commit checks as a part of Github actions.

PTAL: @ankrgyl 

## Notes
* Github Action's doc from Pre-commit maintainers:
https://github.com/marketplace/actions/pre-commit
* Demo PR on how it works once the Github Action is setup:
dashk#1

---------

Co-authored-by: Kenny <ddashk@users.noreply.github.com>
  • Loading branch information
dashk and ddashk authored Sep 7, 2023
1 parent 9bb0e4f commit ef5f258
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Source: https://github.com/marketplace/actions/pre-commit
name: lint

on:
pull_request:
push:
branches: [main]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0

0 comments on commit ef5f258

Please sign in to comment.