Skip to content

Commit

Permalink
Add ufmt linter for pyproject
Browse files Browse the repository at this point in the history
  • Loading branch information
xuzhao9 committed Nov 9, 2024
1 parent 731c147 commit c7a42e9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/linter.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: TritonBench Linter
on:
pull_request:
push:
branches:
- main
workflow_dispatch:


jobs:
pylint:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Checkout
with:
path: tritonbench
- name: Check Formatting
uses: omnilib/ufmt@action-v1
with:
path: tritonbench

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
cancel-in-progress: true
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[tool.ufmt]
formatter = "ruff-api"
excludes = ["submodules/"]

0 comments on commit c7a42e9

Please sign in to comment.