Skip to content

Commit

Permalink
Add isort
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavcs committed Nov 19, 2024
1 parent faf76d3 commit 76be147
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ mypy
ruff
black
flake8
isort

# For release
build
Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 76be147

Please sign in to comment.