Backend Formatting

How to run Ruff to format Python files Use when this capability is needed.

tomevault-io 1279046 2 files · 1.3 KB Updated

File contents

Python Formatting

We use ruff to format all Python files. We also use ./backend/pyproject.toml to configure Ruff. There are two ways to run formatting

  1. Manually:

    cd ./backend
    uv run ruff format --config ./pyproject.toml
    
  2. Via script (run from project root), this will also run lint, type annotation check and tests:

    ./scripts/linting.bash --backend
    

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/jpmolinamatute--arch-stats--backend-formatting commit 12790465c0

Frequently asked questions

npx skillmds@latest add tomevault-io/backend-formatting