Skip to content

Commit

Permalink
lint: replace isort with Ruff's rule I
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 16, 2024
1 parent 3420c71 commit 0b1f6fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ select = [
"F",
# pycodestyle Warning
"W",
# isort
"I",
# no-blank-line-before-function
"D201",
# one-blank-line-after-class
Expand Down Expand Up @@ -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 = [
Expand Down

0 comments on commit 0b1f6fa

Please sign in to comment.