Skip to content

Use Ruff & Black instead of pre-commit #36

Use Ruff & Black instead of pre-commit

Use Ruff & Black instead of pre-commit #36

Workflow file for this run

name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Lint
run: pipx run -- hatch run lint:check
env:
RUFF_OUTPUT_FORMAT: github
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up prerequisites
run: sudo apt-get install graphviz libgraphviz-dev
- name: Test
run: pipx run -- hatch run test:run