Skip to content

Commit

Permalink
added worflow for backend formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
aykutaaykut committed Jul 4, 2023
1 parent 78d4ed1 commit 0fbd7c8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/backend-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Backend Black Format

on:
push:
paths:
- '*.py'
pull_request:
paths:
- '*.py'

jobs:
format:
runs-on: ubuntu-latest
steps:
- name: Check out source repository
uses: actions/checkout@v3

- name: Set up Python environment
uses: actions/setup-python@v4
with:
python-version: "3.10"

- name: Black Format
run: |
pip3 install -r requirements.txt
black --config=./backend/pyproject.toml --preview ./backend

0 comments on commit 0fbd7c8

Please sign in to comment.