Skip to content

Commit

Permalink
feat: add pre-commit.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
umbertogriffo committed Jan 1, 2024
1 parent 253aac6 commit 7f87286
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Lint and format

on: [pull_request]

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.ref }}

- uses: actions/setup-python@v3
with:
python-version: '3.18'

- name: Changed files
id: changed_files
uses: jitterbit/get-changed-files@v1

- uses: pre-commit/[email protected]
with:
extra_args: --files ${{ steps.changed_files.outputs.all }}

0 comments on commit 7f87286

Please sign in to comment.