Skip to content

Commit

Permalink
align the lint check
Browse files Browse the repository at this point in the history
  • Loading branch information
RUIJIEZHONG66166 committed Feb 26, 2025
1 parent 4e7e015 commit 81948b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/xpu/test_xpu_xpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from .xpu_test_utils import XPUPatchForImport

with XPUPatchForImport(False):
from test_xpu import TestXpu, TestXpuAutocast, TestXpuTrace # noqa
from test_xpu import TestXpu, TestXpuAutocast, TestXpuTrace # noqa: PGH004

Check warning on line 12 in test/xpu/test_xpu_xpu.py

View workflow job for this annotation

GitHub Actions / preci-lint-check

RUFF F401

`test_xpu.TestXpuAutocast` imported but unused. See https://beta.ruff.rs/docs/rules/. To disable, use ` # noqa: F401`

Check warning on line 12 in test/xpu/test_xpu_xpu.py

View workflow job for this annotation

GitHub Actions / preci-lint-check

RUFF F401

`test_xpu.TestXpuTrace` imported but unused. See https://beta.ruff.rs/docs/rules/. To disable, use ` # noqa: F401`

Check warning on line 12 in test/xpu/test_xpu_xpu.py

View workflow job for this annotation

GitHub Actions / preci-lint-check

FLAKE8 F401

'test_xpu.TestXpuAutocast' imported but unused See https://www.flake8rules.com/rules/F401.html

Check warning on line 12 in test/xpu/test_xpu_xpu.py

View workflow job for this annotation

GitHub Actions / preci-lint-check

FLAKE8 F401

'test_xpu.TestXpuTrace' imported but unused See https://www.flake8rules.com/rules/F401.html

Check warning on line 12 in test/xpu/test_xpu_xpu.py

View workflow job for this annotation

GitHub Actions / preci-lint-check

FLAKE8 E261

at least two spaces before inline comment See https://www.flake8rules.com/rules/E261.html

instantiate_device_type_tests(TestXpu, globals(), only_for="xpu", allow_xpu=True)

Expand Down

0 comments on commit 81948b2

Please sign in to comment.