chore: add isort pre-commit hook

This commit is contained in:
jo 2023-02-02 19:37:49 +01:00 committed by Jonas L
parent f8f6fda794
commit 3606bd2b2b
8 changed files with 15 additions and 0 deletions

View File

@ -41,6 +41,12 @@ repos:
- id: pyupgrade
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
rev: 23.1.0
hooks:

View File

@ -1,6 +1,7 @@
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["libretime_analyzer"]
[tool.pylint.messages_control]
extension-pkg-whitelist = "pydantic"

View File

@ -1,6 +1,7 @@
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["libretime_api_client"]
[tool.pylint.messages_control]
extension-pkg-whitelist = "pydantic"

View File

@ -1,6 +1,7 @@
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["libretime_api"]
[tool.pylint.master]
load-plugins = "pylint_django"

View File

@ -1,6 +1,7 @@
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["libretime_playout"]
[tool.pylint.messages_control]
extension-pkg-whitelist = [

3
pyproject.toml Normal file
View File

@ -0,0 +1,3 @@
[tool.isort]
profile = "black"
combine_as_imports = true

View File

@ -1,6 +1,7 @@
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["libretime_shared"]
[tool.pylint.messages_control]
extension-pkg-whitelist = "pydantic"

View File

@ -1,6 +1,7 @@
[tool.isort]
profile = "black"
combine_as_imports = true
known_first_party = ["libretime_worker"]
[tool.pylint.messages_control]
extension-pkg-whitelist = "pydantic"