Skip to content

Commit bf262f4

Browse files
committed
Update isort configuration after discussion in boxtree
inducer/boxtree#74
1 parent 3615ce4 commit bf262f4

7 files changed

Lines changed: 18 additions & 13 deletions

File tree

pytools/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
import sys
3636
from functools import reduce, wraps
3737
from sys import intern
38-
from typing import (Any, Callable, ClassVar, Dict, Generic, Hashable, Iterable,
39-
List, Optional, Set, Tuple, TypeVar, Union)
38+
from typing import (
39+
Any, Callable, ClassVar, Dict, Generic, Hashable, Iterable, List, Optional, Set,
40+
Tuple, TypeVar, Union)
4041

4142

4243
try:

pytools/graph.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@
6464
is included as a key in the graph.
6565
"""
6666

67-
from typing import (Any, Callable, Collection, Dict, Hashable, Iterator, List,
68-
Mapping, MutableSet, Optional, Set, Tuple, TypeVar)
67+
from typing import (
68+
Any, Callable, Collection, Dict, Hashable, Iterator, List, Mapping, MutableSet,
69+
Optional, Set, Tuple, TypeVar)
6970

7071

7172
try:

pytools/py_codegen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@
2424
from importlib.util import MAGIC_NUMBER as BYTECODE_VERSION
2525
from types import FunctionType, ModuleType
2626

27-
from pytools.codegen import CodeGenerator as CodeGeneratorBase
28-
from pytools.codegen import Indentation, remove_common_indentation # noqa
27+
from pytools.codegen import ( # noqa
28+
CodeGenerator as CodeGeneratorBase, Indentation, remove_common_indentation)
2929

3030

3131
class PythonCodeGenerator(CodeGeneratorBase):

pytools/tag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030

3131
import sys
3232
from dataclasses import dataclass
33-
from typing import (Any, FrozenSet, Iterable, Set, Tuple, Type, # noqa: F401
34-
TypeVar, Union)
33+
from typing import ( # noqa: F401
34+
Any, FrozenSet, Iterable, Set, Tuple, Type, TypeVar, Union)
3535

3636
from pytools import memoize, memoize_method
3737

setup.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ multiline-quotes = """
1010
# enable-isort
1111
1212
[isort]
13+
line_length = 85
1314
lines_after_imports = 2
15+
combine_as_imports = True
16+
multi_line_output = 4
1417
1518
[wheel]
1619
universal = 1

test/test_persistent_dict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66

77
import pytest
88

9-
from pytools.persistent_dict import (CollisionWarning, NoSuchEntryError,
10-
PersistentDict, ReadOnlyEntryError,
11-
WriteOncePersistentDict)
9+
from pytools.persistent_dict import (
10+
CollisionWarning, NoSuchEntryError, PersistentDict, ReadOnlyEntryError,
11+
WriteOncePersistentDict)
1212
from pytools.tag import Tag, tag_dataclass
1313

1414

test/test_pytools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ def vectorized_add(self, ary):
494494

495495

496496
def test_tag():
497-
from pytools.tag import (NonUniqueTagError, Tag, Taggable, UniqueTag,
498-
check_tag_uniqueness)
497+
from pytools.tag import (
498+
NonUniqueTagError, Tag, Taggable, UniqueTag, check_tag_uniqueness)
499499

500500
# Need a subclass that defines the copy function in order to test.
501501
class TaggableWithCopy(Taggable):

0 commit comments

Comments
 (0)