Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
georgepstaylor authored Apr 25, 2024
1 parent 7225369 commit a8c2541
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Format code
on:
pull_request:
jobs:
format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Format code with black
run: |
pip install black
black --line-length 120 .
- name: Commit changes
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: "Formatted code with black --line-length 120"
add: "."

0 comments on commit a8c2541

Please sign in to comment.