Skip to content

Commit

Permalink
Add reformat workflow in GitHub CI
Browse files Browse the repository at this point in the history
  • Loading branch information
akaihola committed Mar 9, 2024
1 parent 6cee9f8 commit df3ce4c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/darker-black-isort.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
---
name: Test linting using the Darker GitHub Action
name: darker-black-isort

on: push # yamllint disable-line rule:truthy

jobs:
darker-github-action-linting-test:
reformat-modified:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Darker's own GitHub action straight from the repository
- name: Reformat code using own GitHub action straight from the repository
uses: ./
with:
options:
Expand All @@ -22,5 +22,4 @@ jobs:
--config .github/workflows/config/empty.toml
src: src/darker
revision: origin/master...
lint: flake8
version: "@${{ github.ref_name }}"

0 comments on commit df3ce4c

Please sign in to comment.