google / benchmark

A microbenchmark support library
Apache License 2.0
8.6k stars 1.57k forks source link

Switch out black for ruff format #1698

Closed nicholasjng closed 7 months ago

nicholasjng commented 7 months ago

Saves one pre-commit hook, some pyproject.toml configuration, and provides much better performance with identical behavior.

(Black style and ruff format style are only 99.x% compatible, but their deviations are very small, and none of them happen in this codebase. See also https://docs.astral.sh/ruff/formatter/#black-compatibility)