From 98d61b13e42ec294c2be059029e33021ba6ef3a0 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Fri, 12 Apr 2024 23:24:58 +0200 Subject: [PATCH] style: moved isort config to pyproject.toml --- .gitlab-ci.yml | 2 +- pyproject.toml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4f16835..55a8274 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: diff --git a/pyproject.toml b/pyproject.toml index f54ad35..b70a0bd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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