chore: add isort pre-commit hook
This commit is contained in:
parent
f8f6fda794
commit
3606bd2b2b
|
@ -41,6 +41,12 @@ repos:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py38-plus]
|
args: [--py38-plus]
|
||||||
|
|
||||||
|
- repo: https://github.com/pycqa/isort
|
||||||
|
rev: 5.12.0
|
||||||
|
hooks:
|
||||||
|
- id: isort
|
||||||
|
args: [--resolve-all-configs]
|
||||||
|
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 23.1.0
|
rev: 23.1.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
known_first_party = ["libretime_analyzer"]
|
||||||
|
|
||||||
[tool.pylint.messages_control]
|
[tool.pylint.messages_control]
|
||||||
extension-pkg-whitelist = "pydantic"
|
extension-pkg-whitelist = "pydantic"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
known_first_party = ["libretime_api_client"]
|
||||||
|
|
||||||
[tool.pylint.messages_control]
|
[tool.pylint.messages_control]
|
||||||
extension-pkg-whitelist = "pydantic"
|
extension-pkg-whitelist = "pydantic"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
known_first_party = ["libretime_api"]
|
||||||
|
|
||||||
[tool.pylint.master]
|
[tool.pylint.master]
|
||||||
load-plugins = "pylint_django"
|
load-plugins = "pylint_django"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
known_first_party = ["libretime_playout"]
|
||||||
|
|
||||||
[tool.pylint.messages_control]
|
[tool.pylint.messages_control]
|
||||||
extension-pkg-whitelist = [
|
extension-pkg-whitelist = [
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
[tool.isort]
|
||||||
|
profile = "black"
|
||||||
|
combine_as_imports = true
|
|
@ -1,6 +1,7 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
known_first_party = ["libretime_shared"]
|
||||||
|
|
||||||
[tool.pylint.messages_control]
|
[tool.pylint.messages_control]
|
||||||
extension-pkg-whitelist = "pydantic"
|
extension-pkg-whitelist = "pydantic"
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
[tool.isort]
|
[tool.isort]
|
||||||
profile = "black"
|
profile = "black"
|
||||||
combine_as_imports = true
|
combine_as_imports = true
|
||||||
|
known_first_party = ["libretime_worker"]
|
||||||
|
|
||||||
[tool.pylint.messages_control]
|
[tool.pylint.messages_control]
|
||||||
extension-pkg-whitelist = "pydantic"
|
extension-pkg-whitelist = "pydantic"
|
||||||
|
|
Loading…
Reference in New Issue