ci/formatting: Use ruff
built-in formatter instead of tan
#29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |