mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
ci: added isort to pyproject.toml and pre-commit (#5933)
This commit is contained in:
parent
58192d35f1
commit
64243540fb
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user