Skip to content

Commit cc4a538

Browse files
committed
ignore __init__ in isort
1 parent 36fae72 commit cc4a538

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,7 @@ repos:
44
hooks:
55
- id: black
66
args: [--line-length=120]
7-
exclude: dynamo/tools/DDRTree_py.py|dynamo/tools/psl_py.py|dynamo/__init__.py
8-
# exclude: |
9-
# (?x)^(
10-
# dynamo/tools/DDRTree_py.py|
11-
# dynamo/tools/psl_py.py
12-
# )$
7+
exclude: dynamo/tools/DDRTree_py.py|dynamo/tools/psl_py.py
138

149

1510
# - repo: https://gitlab.com/PyCQA/flake8
@@ -23,3 +18,4 @@ repos:
2318
hooks:
2419
- id: isort
2520
args: ["--profile", "black", "--filter-files"]
21+
exclude: dynamo/__init__.py

dynamo/__init__.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,19 @@
66
__version__ = get_version(__file__)
77
del get_version
88

9-
from . import configuration, est, ext, mv, pd, pl, pp, sample_data, sim, tl, vf
9+
from . import pp
10+
from . import est
11+
from . import tl
12+
from . import vf
13+
from . import pd
14+
from . import pl
15+
from . import mv
16+
from . import sim
17+
from .data_io import *
18+
from . import sample_data
19+
from . import configuration
20+
from . import ext
21+
1022
from .data_io import *
1123
from .dynamo_logger import (
1224
Logger,

0 commit comments

Comments
 (0)