Skip to content

Commit

Permalink
snakefmt formating
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Jun 28, 2024
1 parent 1ccc31e commit 8eae863
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,24 @@ jobs:

- uses: mamba-org/setup-micromamba@v1
with:
environment-name: black
create-args: black
environment-name: formatting
create-args: black snakefmt
cache-environment: true

- name: Check formatting
- name: Check Black formatting
shell: bash -el {0}
run: black --check --diff .

- name: Check Snakefmt formatting
shell: bash -el {0}
run: snakefmt --check --diff .

- name: Comment PR
if: github.event_name == 'pull_request' && failure()
uses: marocchino/[email protected]
with:
message: "Please format your code with [black](https://black.readthedocs.io): `black . `."
message: |
Please format your code with:
- [black](https://black.readthedocs.io): `black .`
- [snakefmt](https://github.com/snakemake/snakefmt): `snakefmt .`
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 8eae863

Please sign in to comment.