Skip to content

Commit

Permalink
[ci] Run isort
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
Ana06 committed Feb 4, 2025
1 parent 890fb74 commit 558f0d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install black
run: pip install black
- name: Install dependencies
run: pip install black isort
- name: Run black
run: black --line-length=120 --check --diff .
- name: Run isort
run: isort --check --diff .

1 change: 0 additions & 1 deletion virtualbox/vbox-adapter-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@

gi.require_version("Notify", "0.7")
from gi.repository import Notify

from vboxcommon import *

DYNAMIC_VM_NAME = ".dynamic"
Expand Down

0 comments on commit 558f0d5

Please sign in to comment.