ci: added isort to pyproject.toml and pre-commit (#5933)

This commit is contained in:
Matt Speck 2023-10-03 19:01:26 -04:00 committed by GitHub
parent 58192d35f1
commit 64243540fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View File

@ -39,4 +39,10 @@ repos:
- id: actionlint-docker
args: ["-ignore", "SC2102"]
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
# TODO we can make pylint run at this stage too, once their execution gets normalized

View File

@ -246,6 +246,7 @@ formatting = [
# Version specified following Black stability policy:
# https://black.readthedocs.io/en/stable/the_black_code_style/index.html#stability-policy
"black[jupyter]~=23.0",
"isort~=5.12"
]
all = [
@ -450,3 +451,5 @@ max-statements = 105 # Default is 50
omit = [
"haystack/testing/*",
]
[tool.isort]
profile = "black"