Skip to content

Merge branch 'main' into 9-add-github-actions-for-linting-and-pytesting #6

Merge branch 'main' into 9-add-github-actions-for-linting-and-pytesting

Merge branch 'main' into 9-add-github-actions-for-linting-and-pytesting #6

Workflow file for this run

name: Linters
on: [push]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Run black
run: |
hatch -e lint run black .
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Run ruff
run: |
hatch -e lint run ruff .