Skip to content

Commit

Permalink
Merge pull request #38 from qoherent/format-workflow
Browse files Browse the repository at this point in the history
Workflow fail if black and isort fail
  • Loading branch information
UmairK5669 authored Apr 20, 2024
2 parents 723602b + 5d475cf commit 3e261bb
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,23 @@ jobs:
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.11"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry lock --no-update
poetry install
pip install black
pip install isort
- name: Run Black
run: black ./ --config pyproject.toml
- name: Check Black formatting
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"

- name: Run Isort
run: isort .
- name: Check Isort formatting
uses: isort/isort-action@master

- name: Setup flake8 annotations
uses: rbialon/[email protected]
Expand Down

0 comments on commit 3e261bb

Please sign in to comment.