From 0b1f6fad300d7ffed51bf78013cbcfe208e6699f Mon Sep 17 00:00:00 2001 From: jirka Date: Thu, 29 Aug 2024 01:59:53 +0200 Subject: [PATCH] lint: replace `isort` with Ruff's rule I --- .pre-commit-config.yaml | 11 ----------- pyproject.toml | 4 ++++ 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f861fb57916..79bcd6955e8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,17 +16,6 @@ repos: ^cpp/cmake/thirdparty/patches/.*| ^python/cudf/cudf/tests/data/subword_tokenizer_data/.* ) - - repo: https://github.com/PyCQA/isort - rev: 5.13.2 - hooks: - - id: isort - # Use the config file specific to each subproject so that each - # project can specify its own first/third-party packages. - args: ["--config-root=python/", "--resolve-all-configs"] - files: python/.* - exclude: | - (?x)^(^python/cudf_polars/.*) - types_or: [python, cython, pyi] - repo: https://github.com/MarcoGorelli/cython-lint rev: v0.16.2 hooks: diff --git a/pyproject.toml b/pyproject.toml index 8f9aa165e5a..8ee84382c46 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,6 +34,8 @@ select = [ "F", # pycodestyle Warning "W", + # isort + "I", # no-blank-line-before-function "D201", # one-blank-line-after-class @@ -96,6 +98,8 @@ ignore = [ "E203", # line-too-long (due to Copyright header) "E501", + # [*] Import block is un-sorted or un-formatted + "I001", ] fixable = ["ALL"] exclude = [