Skip to content

Add CI/CD and pre-commit configuration #1

Add CI/CD and pre-commit configuration

Add CI/CD and pre-commit configuration #1

Workflow file for this run

name: Linting
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e ".[dev]"
- name: Check code formatting with black
run: |
black --check src tests
- name: Check import sorting with isort
run: |
isort --check-only src tests
- name: Type check with mypy
run: |
mypy src/patchtest2
continue-on-error: true # Don't fail build on type errors initially