Skip to content

Formatting code with ruff#

Why manually bother to format your code when you can automate it?

.pre-commit-config.yaml
repos:
    ...

  - repo: https://github.com/charliermarsh/ruff-pre-commit
    rev: v0.3.0
    hooks:
      - id: ruff-format

updated: 2024-03-03 created: 2023-04-20