Skip to content

Merge main into sweep/add-docstrings #871

Merge main into sweep/add-docstrings

Merge main into sweep/add-docstrings #871

Workflow file for this run

name: Python Code Check
on: [push, pull_request]
jobs:
style:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Cache Poetry dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run black
run: poetry run black --check .
- name: Run flake8
run: poetry run flake8