Skip to content

Commit

Permalink
Update CI workflow to use pre-commit for styling
Browse files Browse the repository at this point in the history
checks
  • Loading branch information
kadirnar committed Nov 23, 2023
1 parent a943c43 commit 531eebe
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,10 @@ jobs:
- name: Update pip
run: python -m pip install --upgrade pip

- name: Lint with flake8, black and isort
- name: Check styling with pre-commit
run: |
pip install -e .[dev]
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
black . --check --config pyproject.toml
isort -c .
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=120 --statistics
- name: Install Numpy
run: >
pip install numpy
pre-commit install
pre-commit run --all-files
- name: Install PyTorch on Linux and Windows
if: >
Expand All @@ -75,6 +68,7 @@ jobs:
- name: Install PyTorch on MacOS
if: matrix.operating-system == 'macos-latest'
run: pip install torch==${{ matrix.torch-version }}
- name: Install PyTorch on Linux and Windows

- name: Install whisperplus package from local setup.py
run: >
Expand Down

0 comments on commit 531eebe

Please sign in to comment.