From 2c98c5bb88b975682c681f15686bbb27f1a8910a Mon Sep 17 00:00:00 2001 From: Geoff Boeing Date: Thu, 19 Dec 2024 11:23:56 -0800 Subject: [PATCH] replace nbqa with ruff --- .pre-commit-config.yaml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f993e14..c346ef7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -15,18 +15,13 @@ repos: args: [--branch, main] - id: trailing-whitespace - - repo: https://github.com/nbQA-dev/nbQA - rev: "1.9.1" + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: "v0.8.2" hooks: - - id: nbqa-isort - additional_dependencies: [isort] - args: [--line-length=100, --sl] - - id: nbqa-black - additional_dependencies: [black] + - id: ruff + args: [--fix] + - id: ruff-format args: [--line-length=100] - - id: nbqa-flake8 - additional_dependencies: [flake8] - args: [--max-line-length=100] - repo: local hooks: