Skip to content

Enabling AWS (Redshift + EMR) in chuck-data #182

Enabling AWS (Redshift + EMR) in chuck-data

Enabling AWS (Redshift + EMR) in chuck-data #182

Workflow file for this run

name: Python Linting
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: # Allows manual triggering
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.13]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 black
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 chuck_data tests --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 chuck_data tests --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Check formatting with Black
run: |
black --check --diff chuck_data tests