Skip to content

Commit 751c20a

Browse files
committed
Allow ruff to run isort
1 parent fc8d43c commit 751c20a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@ repos:
33
rev: v0.11.13
44
hooks:
55
- id: ruff-check
6-
args: [ --fix ]
6+
args: ["--fix", "--select=I"]
77
- id: ruff-format
8-
9-

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ simple-repository-browser = "simple_repository_browser.__main__:main"
5151
[tool.setuptools_scm]
5252
version_file = "simple_repository_browser/_version.py"
5353

54+
[tool.ruff.lint.isort]
55+
force-sort-within-sections = true
56+
5457
# [tool.mypy]
5558
# check_untyped_defs = true
5659
# disallow_untyped_defs = true

0 commit comments

Comments
 (0)