Backend Linting

How to run Ruff to lint python files Use when this capability is needed.

tomevault-io Updated

File contents

Python Linting

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

  1. Manually:

    cd ./backend
    uv run ruff check --fix --config ./pyproject.toml
    
  2. Via script (run from project root), this will also run formatting, 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-linting commit bc638de442

Frequently asked questions

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