Skip to content

Balance spaces in braces #256

Balance spaces in braces

Balance spaces in braces #256

Workflow file for this run

name: CI
on:
push:
branches: main
pull_request:
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install tclint
run: |
pip install . --group test
- name: Run tests
run: |
pytest
format:
name: Check format
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Check format
run: |
pip install --group format
black --check --preview .
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run:
pip install --group lint
- name: Lint
run: |
flake8 --statistics .
- name: Typecheck
run: |
pip install . # need to install package to ensure we get type stubs for deps
mypy src
- name: Spell check
run: |
git ls-files | xargs codespell
- name: Check import organization
run: |
isort . --check --diff