Unverified Commit 760ab022 authored by Muyang Li's avatar Muyang Li Committed by GitHub
Browse files

chore: update the lint workflow (#341)

parent 57e50f8d
...@@ -6,20 +6,22 @@ on: ...@@ -6,20 +6,22 @@ on:
- main - main
- dev - dev
pull_request: pull_request:
branches:
- main
- dev
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Set up Python - name: Set up Python
uses: actions/setup-python@v5 uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.11'
- name: Install dependencies
run: pip install ruff - name: Install pre-commit hook
- name: Run ruff check run: |
run: ruff check nunchaku examples tests --output-format github python -m pip install pre-commit
pre-commit install
- name: Linting
run: pre-commit run --all-files
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment