Create black.yml

This commit is contained in:
mouadessalim 2023-05-06 11:51:12 +01:00 committed by GitHub
parent 4caa140573
commit f9ddcdcbac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

28
.github/workflows/black.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Black Formatter Check
on:
push:
branches:
- main
paths:
- '**.py'
pull_request:
branches:
- main
paths:
- '**.py'
jobs:
Check_With_Black:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install dependencies
run: python -m pip install --upgrade pip && pip install black
- name: Run Black formatter check
run: black --check .