Upgrade isort in pre-commit hook (#70)
parent
0dd407abc4
commit
4121e58fcc
|
@ -4,12 +4,8 @@ repos:
|
||||||
rev: 3.8.3
|
rev: 3.8.3
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
- repo: https://github.com/asottile/seed-isort-config
|
- repo: https://github.com/PyCQA/isort
|
||||||
rev: v2.2.0
|
rev: 5.10.1
|
||||||
hooks:
|
|
||||||
- id: seed-isort-config
|
|
||||||
- repo: https://github.com/timothycrosley/isort
|
|
||||||
rev: 4.3.21
|
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/pre-commit/mirrors-yapf
|
- repo: https://github.com/pre-commit/mirrors-yapf
|
||||||
|
|
|
@ -12,7 +12,7 @@ split_before_expression_after_opening_paren = true
|
||||||
[isort]
|
[isort]
|
||||||
line_length = 79
|
line_length = 79
|
||||||
multi_line_output = 0
|
multi_line_output = 0
|
||||||
known_standard_library = pkg_resources,setuptools
|
extra_standard_library = pkg_resources,setuptools
|
||||||
known_first_party = mmrazor
|
known_first_party = mmrazor
|
||||||
known_third_party=cv2,mmcls,mmcv,mmdet,mmseg,numpy,ordered_set,packaging,pytest,pytorch_sphinx_theme,torch,yaml
|
known_third_party=cv2,mmcls,mmcv,mmdet,mmseg,numpy,ordered_set,packaging,pytest,pytorch_sphinx_theme,torch,yaml
|
||||||
no_lines_before = STDLIB,LOCALFOLDER
|
no_lines_before = STDLIB,LOCALFOLDER
|
||||||
|
|
Loading…
Reference in New Issue