Skip to content

Commit c7a42e9

Browse files
committed
Add ufmt linter for pyproject
1 parent 731c147 commit c7a42e9

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/linter.yaml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: TritonBench Linter
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
10+
jobs:
11+
pylint:
12+
permissions:
13+
contents: read
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
with:
18+
path: tritonbench
19+
- name: Check Formatting
20+
uses: omnilib/ufmt@action-v1
21+
with:
22+
path: tritonbench
23+
24+
concurrency:
25+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
26+
cancel-in-progress: true

pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[tool.ufmt]
2+
formatter = "ruff-api"
3+
excludes = ["submodules/"]

0 commit comments

Comments
 (0)