style: moved isort config to pyproject.toml

This commit is contained in:
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 stage: Formatter
script: script:
- pip install black isort - pip install black isort
- isort --check --diff --line-length=100 --profile=black --multi-line=3 --trailing-comma ./ - isort --check --diff ./
- black --check --diff --color ./ - black --check --diff --color ./
pylint: pylint:

View File

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