Skip to content

Commit 0f57f62

Browse files
committed
minor
1 parent a57658b commit 0f57f62

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ repos:
3030
hooks:
3131
- id: isort
3232
name: Sort imports
33-
args: [--line-width, "120", --profile, black]
33+
# args: [--line-width, "120", --profile, black]
3434

3535
- repo: https://github.com/PyCQA/docformatter
3636
rev: eb1df34

dance/modules/spatial/cell_type_deconvo/stdgcn.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
import torch.nn as nn
2424
import torch.nn.functional as F
2525
from igraph import split_join_distance
26-
2726
# PyTorch related
2827
from sklearn import preprocessing
2928
from sklearn.decomposition import NMF
@@ -34,7 +33,6 @@
3433
from torch.autograd import Variable
3534
from torch.nn.modules.module import Module # 注意: 通常直接使用 nn.Module
3635
from torch.nn.parameter import Parameter # 注意: 通常直接使用 nn.Parameter
37-
3836
# tqdm
3937
from tqdm import tqdm
4038

dance/modules/spatial/spatial_domain/EfNST.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ class Literal(metaclass=LiteralMeta):
6060
import torch.nn.functional as F
6161
import torch.nn.modules.loss
6262
import torchvision.transforms as transforms
63-
6463
# Third-party library imports
6564
from efficientnet_pytorch import EfficientNet
6665
from PIL import Image

pyproject.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,22 @@ blank_line_before_nested_class_or_def = true
88
column_limit = 120
99
split_before_named_assigns = false
1010

11+
12+
[tool.isort]
13+
multi_line_output = 3
14+
indent = " "
15+
include_trailing_comma = true
16+
line_length = 120
17+
use_parentheses = true
18+
1119
[tool.docformatter]
1220
wrap-summaries = 88
1321
wrap-descriptions = 88
1422
in-place = true
1523
blank = true
1624

25+
26+
1727
[tool.pytest.ini_options]
1828
addopts = [
1929
"--strict-markers",

0 commit comments

Comments
 (0)