Update __init__.py #1
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 autopep8 | |
run: pip install --upgrade autopep8 | |
- name: Run AutoPEP8 | |
run: autopep8 --in-place --aggressive --aggressive --recursive app | |
- name: Commit changes | |
env: | |
GITHUB_ACTOR: ${{ github.actor }} | |
COMMIT_EMAIL: ${{ github.actor }}@users.noreply.github.com | |
run: | | |
git config --global user.name $GITHUB_ACTOR | |
git config --global user.email $COMMIT_EMAIL | |
git commit -am "AutoPEP8" |