Skip to content

Commit 2810a3e

Browse files
committed
MAINT: switch from isort to ruff for sorting imports
1 parent 2ef52d2 commit 2810a3e

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ repos:
2020
- id: double-quote-string-fixer
2121
- id: end-of-file-fixer
2222
- id: trailing-whitespace
23-
- repo: https://github.com/PyCQA/isort
24-
rev: 5.12.0
25-
hooks:
26-
- id: isort
2723
- repo: https://github.com/astral-sh/ruff-pre-commit
2824
rev: v0.1.5
2925
hooks:

pyproject.toml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -84,21 +84,19 @@ select = [
8484
'C4', # flake8-comprehensions
8585
'E', # pycodestyle
8686
'F', # pyflakes
87+
'I', # isort
8788
'W', # pycodestyle
8889
'RUF100', # ruff
8990
]
9091
exclude = [
9192
'docs/conf.py',
9293
]
9394

94-
[tool.isort]
95-
lines_between_types = 1
96-
lines_after_imports = 2
97-
multi_line_output = 5
98-
known_first_party = 'mesonpy'
99-
line_length = 127
100-
skip = [
101-
'docs/conf.py',
95+
[tool.ruff.lint.isort]
96+
lines-between-types = 1
97+
lines-after-imports = 2
98+
known-first-party = [
99+
'mesonpy',
102100
]
103101

104102

0 commit comments

Comments
 (0)