Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/derto42/FlowBuddy
Browse files Browse the repository at this point in the history
  • Loading branch information
VasigaranAndAngel committed Aug 11, 2023
2 parents 86cb014 + 73bb673 commit 6d268d3
Showing 1 changed file with 8 additions and 33 deletions.
41 changes: 8 additions & 33 deletions .github/workflows/formatter.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,16 @@

name: Format Python Code

on:
push:
branches:
- main
pull_request:
branches:
- main

name: Format Python code with black
on: push
jobs:
format:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, windows-latest]

runs-on: ubuntu-latest
steps:
- name: Checkout Repository
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # 3.10' is the desired Python version

- name: Install Dependencies
python-version: 3.9
- name: Install black
run: pip install black

- name: Format Code
run: black . # Use 'black .' to format the entire repository

- name: Commit Changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Apply Black formatting"
git push
- name: Format code with black
run: black .

0 comments on commit 6d268d3

Please sign in to comment.