diff --git a/dev-requirements.txt b/dev-requirements.txt index 8cf5d21..8390272 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -6,6 +6,7 @@ mypy ruff black flake8 +isort # For release build diff --git a/pyproject.toml b/pyproject.toml index 64b5a88..d30adfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,3 +11,16 @@ target-version = "py38" line-length = 120 # Never enforce `E501`, enforced by black lint.ignore = ["E501"] + +[tool.isort] +combine_as_imports = true +force_alphabetical_sort_within_sections = true +# Override force_grid_wrap value from profile=black, but black is still happy +force_grid_wrap = 2 +# Same line length as for black +line_length = 120 +no_lines_before = "LOCALFOLDER" +profile = "black" +reverse_relative = true +skip_gitignore = true +src_paths = ["galaxy_release_util", "tests"]