Skip to content

chore(python): replace black with ruff for formatting + linting #7

chore(python): replace black with ruff for formatting + linting

chore(python): replace black with ruff for formatting + linting #7

Workflow file for this run

name: python-ci
on:
release:
types: [created]
pull_request:
push:
branches:
- main
jobs:
test-python:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8"
- name: Pip install
working-directory: python
run: |
python -m pip install --upgrade pip
pip install '.[development]'
pip install -e .
- name: Lint
working-directory: python
run: |
ruff check .
- name: Format
working-directory: python
run: |
ruff fmt --check .
- name: Pytest
working-directory: python
run: |
pytest