Update __init__.py #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Formatting | |
on: | |
push: | |
branches: [ "main" ] | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
- 'migrations/*' | |
pull_request: | |
branches: [ "main" ] | |
paths-ignore: | |
- '**.md' | |
- '.github/**' | |
- 'migrations/*' | |
jobs: | |
formatting: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install black | |
run: pip install black | |
- name: Run black | |
run: black . | |
- name: Apply changes | |
run: | | |
git add . | |
git diff --quiet && git diff --staged --quiet || git commit -m "Apply Black formatting" | |