From b15a5c7fc91f0a572ecee58d145bf272f103402c Mon Sep 17 00:00:00 2001 From: Andreas Pedersen Date: Mon, 22 Jan 2024 14:59:19 +0100 Subject: [PATCH] multiline import isort --- pyproject.toml | 6 +++++- tests/sample/items/test_gradient_layer.py | 9 ++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 27fa016c..dc57511f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -98,4 +98,8 @@ deps = coverage commands = pip install -e '.[dev]' pytest --cov --cov-report=xml -""" \ No newline at end of file +""" + +[tool.isort] +multi_line_output = 3 +include_trailing_comma = true diff --git a/tests/sample/items/test_gradient_layer.py b/tests/sample/items/test_gradient_layer.py index 93686514..cb9189b1 100644 --- a/tests/sample/items/test_gradient_layer.py +++ b/tests/sample/items/test_gradient_layer.py @@ -3,12 +3,15 @@ import pytest from numpy.testing import assert_almost_equal -from EasyReflectometry.sample.item import GradientLayer -from EasyReflectometry.sample.items.gradient_layer import _linear_gradient, _apply_thickness_constraints, _prepare_gradient_layers import EasyReflectometry.sample.items.gradient_layer +from EasyReflectometry.sample.item import GradientLayer +from EasyReflectometry.sample.items.gradient_layer import ( + _apply_thickness_constraints, + _linear_gradient, + _prepare_gradient_layers, +) from EasyReflectometry.sample.layer import Layer from EasyReflectometry.sample.material import Material -from easyCore.Objects.ObjectClasses import Parameter class TestGradientLayer():