python,misc: Add isort to pre-commit
Change-Id: I391a8948f0817bd5c6a9fe8a4c3e4fed07a98c49
This commit is contained in:
@@ -68,6 +68,10 @@ repos:
|
|||||||
- id: check-symlinks
|
- id: check-symlinks
|
||||||
- id: destroyed-symlinks
|
- id: destroyed-symlinks
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
|
- repo: https://github.com/PyCQA/isort
|
||||||
|
rev: 5.11.5
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
|
||||||
rev: 0.2.3
|
rev: 0.2.3
|
||||||
hooks:
|
hooks:
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
[tool.black]
|
[tool.black]
|
||||||
line-length = 79
|
line-length = 79
|
||||||
include = '\.pyi?$'
|
include = '\.pyi?$'
|
||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
multi_line_output = 3
|
||||||
|
line_length = 79
|
||||||
|
force_grid_wrap = 2
|
||||||
|
known_m5 = "m5"
|
||||||
|
known_underscore_m5 = "_m5,slicc"
|
||||||
|
known_gem5 = "gem5"
|
||||||
|
sections="FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,M5,UNDERSCORE_M5,GEM5,LOCALFOLDER"
|
||||||
|
|||||||
Reference in New Issue
Block a user