Skip to content

Commit

Permalink
Skip formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGardhouse committed Jan 20, 2025
1 parent 06ae748 commit 3f97b47
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,35 @@ jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
sf:
- pennylane_sf/**
- tests/**
- .pylintrc
- Makefile
- requirements-ci.txt
- requirements.txt
- setup.py
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Set up Python
if: steps.filter.outputs.sf == 'true'
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install dependencies
if: steps.filter.outputs.sf == 'true'
run: pip install black

- uses: actions/checkout@v2

- name: Run Black
if: steps.filter.outputs.sf == 'true'
run: black -l 100 pennylane_sf/ --check

0 comments on commit 3f97b47

Please sign in to comment.