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:
- main
- dev
pull_request:
branches:
- main
- dev
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install ruff
- name: Run ruff check
run: ruff check nunchaku examples tests --output-format github
python-version: '3.11'
- name: Install pre-commit hook
run: |
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