From 8b435e24f88657d300a743089cdf72830c145739 Mon Sep 17 00:00:00 2001 From: harrisonpim Date: Mon, 20 Nov 2023 14:57:20 +0000 Subject: [PATCH] use ruff to format notebooks too --- .pre-commit-config.yaml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 3e19c49..0de8e39 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,15 +5,14 @@ repos: - id: check-json - id: detect-aws-credentials args: [ --allow-missing-credentials ] - - repo: https://github.com/ambv/black - rev: 23.1.0 - hooks: - - id: black-jupyter - language_version: python3 - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: 'v0.0.246' + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.1.6 hooks: - id: ruff + types_or: [ python, jupyter ] + args: [ --fix ] + - id: ruff-format + types_or: [ python, jupyter ] - repo: local hooks: - id: pyright