Skip to content

Commit 03d45c0

Browse files
committed
isort
1 parent aa67839 commit 03d45c0

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ repos:
2020
files: \.(cmake|CMakeLists\.txt)$
2121
exclude: ^(3rdparty/|build.*/|install/)
2222

23+
# Python import sorting
24+
- repo: https://github.com/pycqa/isort
25+
rev: 5.13.2
26+
hooks:
27+
- id: isort
28+
args: [--settings-path, setup.cfg]
29+
2330
# Ruff Python linter
2431
- repo: https://github.com/charliermarsh/ruff-pre-commit
2532
rev: v0.14.9

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ exclude =
44
3rdparty
55
venv
66
.git
7+
8+
[tool:isort]
9+
skip =
10+
venv
11+
multi_line_output = 3

0 commit comments

Comments
 (0)