Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
put it in the name
  • Loading branch information
Sung Won Chung committed Dec 28, 2023
commit c3e893061c6485527f7a76e8141c67aa079d4b0f
6 changes: 1 addition & 5 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,13 @@ jobs:
if: github.event_name == 'workflow_dispatch'

# This is used for forked PRs as write permissions are required to format files
- name: Suggest ruff formatting
- name: Suggest ruff formatting (you must run and commit changes with `ruff format .` locally on your forked branch to fix errors if they appear)
if: ${{ github.event.pull_request.head.repo.fork == true }}
uses: chartboost/ruff-action@v1
id: ruff_formatter_suggestions
with:
args: format --diff

- name: Error Message
if: ${{ steps.ruff_formatter_suggestions.outcome == 'failure' }}
run: echo "Run `ruff format .` in your forked branch and commit those changes to fix this error"

# This only runs if the PR is NOT from a forked repo
- name: Format files using ruff
if: ${{ github.event.pull_request.head.repo.fork == false }}
Expand Down