Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
760ab022
Unverified
Commit
760ab022
authored
May 01, 2025
by
Muyang Li
Committed by
GitHub
May 01, 2025
Browse files
chore: update the lint workflow (#341)
parent
57e50f8d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
.github/workflows/lint.yaml
.github/workflows/lint.yaml
+11
-9
No files found.
.github/workflows/lint.yaml
View file @
760ab022
...
@@ -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@v
5
uses
:
actions/setup-python@v
4
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment