From 6bf0f4713e50c607080d92f68a618ece058f1914 Mon Sep 17 00:00:00 2001 From: xuewc Date: Thu, 1 Feb 2024 05:33:03 +0800 Subject: [PATCH] chore: update ruff config --- .pre-commit-config.yaml | 6 +----- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a4c7cacf..db202634 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,10 +5,6 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer exclude_types: [json, binary] - - repo: https://github.com/psf/black - rev: "23.12.1" - hooks: - - id: black-jupyter - repo: https://github.com/astral-sh/ruff-pre-commit rev: "v0.1.9" hooks: @@ -17,4 +13,4 @@ repos: - repo: https://github.com/kynan/nbstripout rev: "0.6.1" hooks: - - id: nbstripout \ No newline at end of file + - id: nbstripout diff --git a/pyproject.toml b/pyproject.toml index eb02d76f..bceca2f7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -89,6 +89,7 @@ ignore = [ unfixable = [ "F401", # Don't touch unused imports ] +extend-include = ["*.ipynb"] exclude = [] isort.known-first-party = ["elisa"] isort.combine-as-imports = true