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
ca1a2e90
Commit
ca1a2e90
authored
Mar 23, 2025
by
Hyunsung Lee
Committed by
Zhekai Zhang
Apr 01, 2025
Browse files
Add linting for python.
parent
92ac7b40
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
0 deletions
+37
-0
.github/workflows/lint.yaml
.github/workflows/lint.yaml
+19
-0
.pre-commit-config.yaml
.pre-commit-config.yaml
+11
-0
pyproject.toml
pyproject.toml
+7
-0
No files found.
.github/workflows/lint.yaml
0 → 100644
View file @
ca1a2e90
name
:
Lint
on
:
[
push
,
pull_request
]
jobs
:
lint
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.x'
-
name
:
Install dependencies
run
:
pip install ruff yapf
-
name
:
Run ruff check
run
:
ruff check nunchaku comfyui examples tests --output-format github
-
name
:
Run yapf check
run
:
yapf --diff nunchaku comfyui examples tests --recursive
.pre-commit-config.yaml
0 → 100644
View file @
ca1a2e90
repos
:
-
repo
:
https://github.com/charliermarsh/ruff-pre-commit
rev
:
v0.11.2
hooks
:
-
id
:
ruff
args
:
[
"
check"
,
"
nunchaku"
,
"
comfyui"
,
"
examples"
,
"
tests"
,
"
--output-format"
,
"
github"
]
-
repo
:
https://github.com/google/yapf
rev
:
v0.43.0
hooks
:
-
id
:
yapf
args
:
[
"
--diff"
,
"
--recursive"
,
"
nunchaku"
,
"
comfyui"
,
"
examples"
,
"
tests"
]
pyproject.toml
View file @
ca1a2e90
...
@@ -10,6 +10,13 @@ build-backend = "setuptools.build_meta"
...
@@ -10,6 +10,13 @@ build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
[tool.setuptools.packages.find]
include
=
["nunchaku"]
include
=
["nunchaku"]
[tool.ruff]
line-length
=
140
[tool.ruff.lint]
select
=
[
"E"
,
"W"
]
ignore
=
[
"F401"
,
"E501"
]
[project]
[project]
dynamic
=
["version"]
dynamic
=
["version"]
name
=
"nunchaku"
name
=
"nunchaku"
...
...
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