Skip to content

Commit

Permalink
update conflicting isort and black config see PyCQA/isort#1518
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Oct 15, 2021
1 parent c1e30a2 commit b700ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
5 changes: 4 additions & 1 deletion {{cookiecutter.repository_name}}/.isort.cfg
Original file line number Diff line number Diff line change
@@ -1,2 +1,5 @@
[settings]
known_third_party = PIL,bs4,click,gradio,matplotlib,numpy,pandas,pytorch_lightning,selenium,torch,torchvision,tqdm
known_third_party = PIL,einops,matplotlib,numpy,pytest,pytorch_lightning,torch,torchmetrics,torchvision

[tool.isort]
profile = "black"
11 changes: 4 additions & 7 deletions {{cookiecutter.repository_name}}/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
repos:
- repo: https://github.com/asottile/seed-isort-config
rev: v2.2.0
- repo: https://github.com/pycqa/isort
rev: 5.5.4
hooks:
- id: seed-isort-config
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.9.1
hooks:
- id: isort
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/ambv/black
rev: 21.6b0
hooks:
Expand Down

0 comments on commit b700ddd

Please sign in to comment.