Skip to content

style: apply black and isort formatting to entire codebase #26

style: apply black and isort formatting to entire codebase

style: apply black and isort formatting to entire codebase #26

Workflow file for this run

name: Tests & Lint
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.11", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install -e ".[dev,visualization]"
- name: Check formatting (black)
run: black --check hypotestx/ tests/
- name: Check import order (isort)
run: isort --check-only hypotestx/ tests/
- name: Lint (flake8)
run: >
flake8 hypotestx/ tests/
--max-line-length=100
--extend-ignore=E203,E231
--per-file-ignores=tests/*:E402
- name: Type check (mypy)
run: mypy hypotestx/ --ignore-missing-imports
- name: Run tests with coverage
run: pytest tests/ --cov=hypotestx --cov-report=term-missing --cov-fail-under=75 -v