Skip to content

Commit

Permalink
🎨 add isort to linting job
Browse files Browse the repository at this point in the history
  • Loading branch information
ff137 committed Oct 12, 2023
1 parent 8e5d045 commit df7e3fd
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Black Python linting
uses: lgeiger/[email protected]
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
args: . --check
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install \
isort~=5.12.0 \
black~=23.9.1
- name: Check import style with isort
run: |
isort . --check --profile black --diff
- name: Check code style with Black
run: |
black . --check --diff
deploy:
# if: ${{ startsWith(github.ref, 'refs/tags/') && github.event.base_ref == 'refs/heads/main' }}
runs-on: ubuntu-latest
Expand Down

0 comments on commit df7e3fd

Please sign in to comment.