Skip to content

format code with black and isort #107

format code with black and isort

format code with black and isort #107

Workflow file for this run

name: Format
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: set up python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: install black
run: pip install black
- name: install isort
run: pip install isort
- name: check format
run: |
python -m isort -c --profile black **/*.py
python -m black --check -v tair/*.py tests/*.py