Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/python_static_analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Python Static Analysis

on:
pull_request:
push:
branches: [main]
workflow_dispatch:

jobs:
job:
runs-on: ubuntu-latest

steps:

# https://github.com/actions/setup-python
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install Python dependencies
run: |
pip install --upgrade pip
pip install black 'black[jupyter]' flake8 isort

# https://github.com/actions/checkout
- name: Checkout repository
uses: actions/checkout@v3

- name: Run isort
run: isort --check .

- name: Run flake8
run: flake8

- name: Run black
run: black --check .