From 0b47b6dcf49cbd0c7958826338acca2a3f037507 Mon Sep 17 00:00:00 2001 From: Eli <43382407+eli64s@users.noreply.github.com> Date: Tue, 9 Jan 2024 18:19:01 -0600 Subject: [PATCH] Migrate to ruff formatter and linter. --- .pre-commit-config.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1db71f9c..edcc711d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,4 +1,4 @@ -# Pre-commit hooks configuration file - https://pre-commit.com/ +# Pre-commit hooks - https://pre-commit.com/ repos: - repo: https://github.com/pre-commit/pre-commit-hooks @@ -17,8 +17,9 @@ repos: - id: mixed-line-ending - id: trailing-whitespace - - repo: https://github.com/psf/black - rev: 23.3.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.11 hooks: - - id: black - language_version: python3 + - id: ruff + args: [ --fix ] + - id: ruff-format