Skip to content

Commit 1564f43

Browse files
authored
Merge pull request #360 from mwtoews/rm-isort
Replace isort with ruff check "I" rule
2 parents f083ee8 + 3e5be8a commit 1564f43

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.pre-commit-config.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,6 @@ repos:
77
args: [ --fix ]
88
# Run the formatter
99
- id: ruff-format
10-
- repo: https://github.com/pycqa/isort
11-
rev: 6.0.1
12-
hooks:
13-
- id: isort
14-
name: isort (python)
15-
args: ["--profile", "black"]
1610
- repo: https://github.com/pre-commit/pre-commit-hooks
1711
rev: v5.0.0
1812
hooks:

pyproject.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,14 @@ exclude = [
8787
line-length = 88
8888
indent-width = 4
8989

90-
# Assume Python 3.9
91-
target-version = "py39"
92-
9390
[tool.ruff.lint]
94-
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
95-
select = ["E4", "E7", "E9", "F"]
91+
select = [
92+
"E4", # pycodestyle: Import
93+
"E7", # pycodestyle: Statement
94+
"E9", # pycodestyle: Runtime
95+
"F", # pyflakes
96+
"I", # isort
97+
]
9698
ignore = []
9799

98100
# Allow fix for all enabled rules (when `--fix`) is provided.

0 commit comments

Comments
 (0)