Skip to content

Add checks to filter arguments for TrendAnalysis (Issue #377) #988

Add checks to filter arguments for TrendAnalysis (Issue #377)

Add checks to filter arguments for TrendAnalysis (Issue #377) #988

Workflow file for this run

name: flake8
# since we're only checking PR diffs, only trigger on the pull_request event type.
# note: the pull_request event happens on opened, reopened, and synchronize activities;
# synchronize includes commits being pushed to the PR branch.
# https://docs.github.com/en/free-pro-team@latest/actions/reference/events-that-trigger-workflows#pull_request
on: [pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.12]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # fetch all branches, needed so we can diff against the target branch
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: List changed files
run: |
git diff --compact-summary "origin/$GITHUB_BASE_REF"
- name: Run linter
run: |
flake8 . --config=.flake8 --count --statistics --show-source