Skip to content

Commit

Permalink
Add isort code linting
Browse files Browse the repository at this point in the history
Signed-off-by: Mingxin Zheng <[email protected]>
  • Loading branch information
mingxin-zheng committed Sep 20, 2024
1 parent deb705d commit 310ff66
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/general-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Lint Imports with isort

on:
pull_request:
branches:
- main # Adjust based on your default branch

jobs:
lint:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x' # Specify the Python version you are using

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install isort
- name: Run isort
run: |
isort --check-only --diff .

0 comments on commit 310ff66

Please sign in to comment.