Skip to content

Commit 2d7796d

Browse files
MNT: pre-commit house cleaning (#321)
* MNT: avoid deprecated pre-commit hook id for ruff * MNT: drop isort as a pre-commit hook (replaced with ruff)
1 parent 0b56bf7 commit 2d7796d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
33
rev: v0.14.2
44
hooks:
5-
- id: ruff
5+
- id: ruff-check
66
args: [ --fix ]
77
- repo: https://github.com/PyCQA/autoflake
88
rev: v2.3.1
@@ -12,10 +12,6 @@ repos:
1212
- "--in-place"
1313
- "--remove-all-unused-imports"
1414
- "--remove-unused-variable"
15-
- repo: https://github.com/PyCQA/isort
16-
rev: 7.0.0
17-
hooks:
18-
- id: isort
1915
- repo: https://github.com/pre-commit/pre-commit-hooks
2016
rev: v6.0.0
2117
hooks:

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,8 @@ find = {namespaces = false}
3939

4040
[tool.ruff]
4141
line-length = 100
42+
43+
[tool.ruff.lint]
44+
extend-select = [
45+
"I", # isort
46+
]

0 commit comments

Comments
 (0)