Skip to content

fix: undeclared variable #210

fix: undeclared variable

fix: undeclared variable #210

Workflow file for this run

name: black
on: [push, workflow_dispatch, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
MANUAL_DATABASE_URL: ${{ secrets.MANUAL_DATABASE_URL }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
SECRET: ${{ secrets.SECRET }}
wkhtmltopdf: ${{ secrets.wkhtmltopdf }}
ENVIRONMENT: ${{ secrets.ENVIRONMENT }}
RECAPTCHA: ${{ secrets.RECAPTCHA }}
EMAIL_DEBUGGING_MODE: ${{ secrets.EMAIL_DEBUGGING_MODE }}
SMTP_BULK_PASSWORD: ${{ secrets.SMTP_BULK_PASSWORD }}
SMTP_BULK_USER: ${{ secrets.SMTP_BULK_USER }}
SMTP_BULK_DOMAIN: ${{ secrets.SMTP_BULK_DOMAIN }}
SMTP_DOMAIN: ${{ secrets.SMTP_DOMAIN }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest black==20.8b1
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- uses: wearerequired/lint-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
black: true
auto_fix: true
commit_message: '🧹 reformatted'
git_name: '🧹 black'
- name: black-done
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
event-type: black-done