Skip to content

ci/formatting: Use ruff built-in formatter instead of tan #29

ci/formatting: Use ruff built-in formatter instead of tan

ci/formatting: Use ruff built-in formatter instead of tan #29

Workflow file for this run

name: Check formatting and linting
on: push
jobs:
check_formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Create and activate venv
run: |
python -m venv .venv
source .venv/bin/activate
- name: Install dependencies
run: pip install ruff
- name: Cache venv
uses: actions/cache@v3
with:
path: ./.venv
key: venv-${{ runner.os }}
- name: Run formatter
run: |
ruff format --check .
- name: Run linter
run: |
ruff check .