forked from datafold/data-diff
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 869 Bytes
/
Copy pathformatter.yml
File metadata and controls
33 lines (28 loc) · 869 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: formatter
on:
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
linter_name:
name: runner / ruff
runs-on: ubuntu-latest
steps:
- name: Checkout PR head
uses: actions/checkout@v3
if: github.event_name == 'pull_request'
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.event.pull_request.head.ref }}
- name: Checkout Repo
uses: actions/checkout@v3
if: github.event_name == 'workflow_dispatch'
- name: Check files using the ruff formatter
uses: chartboost/ruff-action@v1
id: ruff_formatter
with:
args: format
- name: Auto commit ruff formatting
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'style fixes by ruff'