Skip to content

Merge pull request #4 from qoherent/feedback-edits #27

Merge pull request #4 from qoherent/feedback-edits

Merge pull request #4 from qoherent/feedback-edits #27

Workflow file for this run

name: Lint and Format Checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
lint-and-format-check:
runs-on: ubuntu-latest
name: Lint and Format Checks
steps:
- name: Check out
uses: actions/checkout@v4
- name: Set up Python environment
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Back Formatting Check
uses: psf/black@stable
with:
options: "--check --verbose"
src: "./"
jupyter: true
- name: Setup Flake8 Annotations
uses: rbialon/flake8-annotations@v1.1
- name: Lint with Flake8
uses: py-actions/flake8@v2
- name: Install Flake8 for Jupyter Notebooks
run: |
pip install --upgrade pip
pip install flake8-nb
- name: Run Flake8 for Jupyter Notebooks
run: |
flake8-nb .
- name: Ensure Clean Notebooks
uses: ResearchSoftwareActions/EnsureCleanNotebooksAction@1.1