Skip to content

Commit 558f0d5

Browse files
committed
[ci] Run isort
Add running isort to the CI to ensure consistent library import in Python files. Run isort to fix the current issues in `vbox-adapter-check.py`.
1 parent 890fb74 commit 558f0d5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/linter.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ jobs:
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15-
- name: Install black
16-
run: pip install black
15+
- name: Install dependencies
16+
run: pip install black isort
1717
- name: Run black
1818
run: black --line-length=120 --check --diff .
19+
- name: Run isort
20+
run: isort --check --diff .
21+

virtualbox/vbox-adapter-check.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323

2424
gi.require_version("Notify", "0.7")
2525
from gi.repository import Notify
26-
2726
from vboxcommon import *
2827

2928
DYNAMIC_VM_NAME = ".dynamic"

0 commit comments

Comments
 (0)