Skip to content

Commit

Permalink
pre-commit on PR
Browse files Browse the repository at this point in the history
  • Loading branch information
NripeshN committed Jul 23, 2023
1 parent 714c240 commit 4bc1f07
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pre_commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install Dependencies
run: pip install black autoflake flake8 docformatter pydocstyle
- name: Run pre-commit
run: pre-commit run --all-files

0 comments on commit 4bc1f07

Please sign in to comment.