Skip to content

Commit a71ee86

Browse files
committed
Tweak isort settings
1 parent 63b37cb commit a71ee86

2 files changed

Lines changed: 13 additions & 21 deletions

File tree

py_cppmodel.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
from typing import Any, List, Optional
2-
3-
from clang.cindex import (
4-
AccessSpecifier,
5-
Cursor,
6-
CursorKind,
7-
Diagnostic,
8-
ExceptionSpecificationKind,
9-
SourceLocation,
10-
TranslationUnit,
11-
TypeKind,
12-
)
1+
from typing import Any
2+
from typing import List
3+
from typing import Optional
4+
5+
from clang.cindex import AccessSpecifier
6+
from clang.cindex import Cursor
7+
from clang.cindex import CursorKind
8+
from clang.cindex import Diagnostic
9+
from clang.cindex import ExceptionSpecificationKind
10+
from clang.cindex import SourceLocation
11+
from clang.cindex import TranslationUnit
12+
from clang.cindex import TypeKind
1313

1414

1515
def _get_annotations(cursor: Cursor) -> List[str]:

pyproject.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,8 @@ ignore = [
5757
fixable = ["ALL"]
5858
unfixable = []
5959

60-
[tool.ruff.lint.mccabe]
61-
max-complexity = 8
62-
6360
[tool.ruff.lint.isort]
64-
known-third-party = ["mlflow"]
65-
66-
[tool.ruff.lint.per-file-ignores]
67-
"__init__.py" = [
68-
"E402", # import violations
69-
]
61+
force-single-line = true
7062

7163
[tool.ruff.format]
7264
quote-style = "double"

0 commit comments

Comments
 (0)