Skip to content

Commit

Permalink
ci: Add Flake8 linting to notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
EdCaunt committed Nov 13, 2024
1 parent 2f18ab8 commit b30c429
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ concurrency:
cancel-in-progress: true

on:
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master
# Trigger the workflow on push or pull request,
# but only for the master branch
push:
branches:
- master
pull_request:
branches:
- master

jobs:
flake8:
Expand All @@ -21,14 +21,16 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.9
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
pip install nbqa
- name: Lint with flake8
run: |
flake8 --builtins=ArgumentError .
nbqa flake8 examples/

0 comments on commit b30c429

Please sign in to comment.