Skip to content

Commit 9c0735d

Browse files
committed
fix lint
1 parent 0dba0f5 commit 9c0735d

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/on_pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Install Ruff
2323
run: pip install ruff==0.3.3
2424
- name: Run Ruff
25-
run: ruff .
25+
run: ruff check .
2626
lint-js:
2727
name: eslint
2828
runs-on: ubuntu-latest

modules/cmd_args.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
parser.add_argument("--use-directml", action="store_true", help="use DirectML device as torch device")
7878
parser.add_argument("--use-zluda", action="store_true", help="use ZLUDA device as torch device")
7979
parser.add_argument("--use-nightly", action="store_true", help="use nightly build of ZLUDA when combined with --use-zluda")
80+
parser.add_argument("--use-rocm", action="store_true", help="use ROCm device as torch device")
8081
parser.add_argument("--use-ipex", action="store_true", help="use Intel XPU as torch device")
8182
parser.add_argument("--disable-model-loading-ram-optimization", action='store_true', help="disable an optimization that reduces RAM use when loading a model")
8283
parser.add_argument("--listen", action='store_true', help="launch gradio with 0.0.0.0 as server name, allowing to respond to network requests")

modules/launch_utils.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import sys
88
import importlib.util
99
import importlib.metadata
10-
import platform
1110
import json
1211
import glob
1312
import shlex

modules/rocm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def get_gfx_version(self) -> Union[str, None]:
129129

130130
def find() -> Union[Environment, None]:
131131
try: # TheRock
132-
import _rocm_sdk_core # pylint: disable=unused-import
132+
import _rocm_sdk_core # noqa: F401
133133
return PythonPackageEnvironment()
134134
except ImportError:
135135
pass

0 commit comments

Comments
 (0)