style: moved isort config to pyproject.toml

This commit is contained in:
wakonig_k 2024-04-12 23:24:58 +02:00
parent 769a45d7ff
commit 98d61b13e4
2 changed files with 7 additions and 1 deletions

View File

@ -35,7 +35,7 @@ formatter:
stage: Formatter
script:
- pip install black isort
- isort --check --diff --line-length=100 --profile=black --multi-line=3 --trailing-comma ./
- isort --check --diff ./
- black --check --diff --color ./
pylint:

View File

@ -39,6 +39,12 @@ Homepage = "https://gitlab.psi.ch/bec/ophyd_devices"
[tool.hatch.build.targets.wheel]
include = ["*"]
[tool.isort]
profile = "black"
line_length = 100
multi_line_output = 3
include_trailing_comma = true
[tool.black]
line-length = 100
skip-magic-trailing-comma = true