Skip to content

Commit a79b89a

Browse files
committed
update conflicting isort and black config see PyCQA/isort#1518
1 parent e8997d2 commit a79b89a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.isort.cfg

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
[settings]
22
known_third_party = PIL,einops,matplotlib,numpy,pytest,pytorch_lightning,torch,torchmetrics,torchvision
3+
4+
[tool.isort]
5+
profile = "black"

.pre-commit-config.yaml

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
repos:
2-
- repo: https://github.com/asottile/seed-isort-config
3-
rev: v2.2.0
2+
- repo: https://github.com/pycqa/isort
3+
rev: 5.5.4
44
hooks:
5-
- id: seed-isort-config
6-
- repo: https://github.com/pre-commit/mirrors-isort
7-
rev: v5.9.1
8-
hooks:
9-
- id: isort
5+
- id: isort
6+
args: ["--profile", "black"]
107
- repo: https://github.com/ambv/black
118
rev: 21.6b0
129
hooks:

0 commit comments

Comments
 (0)