From 6e0dcf6359cfb082850b147a49049ce5f0e437ca Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Mon, 9 Jun 2025 01:58:10 -0400 Subject: [PATCH] Switch to ruff --- .pre-commit-config.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 44afee4..38afa67 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,11 @@ repos: -- repo: https://github.com/psf/black - rev: 23.7.0 - hooks: - - id: black -- repo: https://github.com/doublify/pre-commit-clang-format - rev: 62302476d0da01515660132d76902359bed0f782 - hooks: - - id: clang-format +- repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.11.13 + hooks: + - id: ruff-check + args: [--fix] + - id: ruff-format +- repo: https://github.com/doublify/pre-commit-clang-format + rev: 62302476d0da01515660132d76902359bed0f782 + hooks: + - id: clang-format