Skip to content

Add GitHub Actions workflow for linting code. #2

Add GitHub Actions workflow for linting code.

Add GitHub Actions workflow for linting code. #2

Workflow file for this run

name: Lint Code
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install linting dependencies
run: |
pip install black==24.10.0 isort==5.13.2 ruff==0.6.9
- name: Run Black
run: |
black --check .
- name: Run isort
run: |
isort --check-only .
- name: Run Ruff
run: |
ruff check .