Files
picard/pyproject.toml
Philipp Wolfer e46419fb43 Upgrade to isort 5 (#2164)
* Upgrade to isort 5

isort 5 now can also handle imports not at top, hence some new locations now get sorted automatically.

* Move isort config from .isort.cfg to pyproject.toml

* isort: remove exclusion of some source files

isort now only ignores auto-generated files. The other files had been excluded because old isort could not handle imports not placed on the top.

* isort: use skip_glob to ignore resources.py

This should fix issues with the `skip` parameter on Windows.
2022-10-29 15:44:12 +02:00

28 lines
750 B
TOML

[build-system]
requires = ["setuptools>=62.4.0"]
build-backend = "setuptools.build_meta"
[tool.isort]
sections = [
"FUTURE", "STDLIB", "THIRDPARTY", "QT", "TEST", "PICARD", "LOCALFOLDER",
"RESOURCES", "PICARD_UI"
]
default_section = "LOCALFOLDER"
known_picard = ["picard"]
known_picard_ui = ["picard.ui"]
known_qt = ["PyQt5"]
known_resources = ["picard.resources"]
known_test = ["test.*"]
known_third_party = ["dateutil", "fasteners", "mutagen", "yaml"]
skip_glob = ["**/ui_*.py", "picard/resources.py"]
combine_as_imports = true
float_to_top = false
force_grid_wrap = 2
force_sort_within_sections = true
include_trailing_comma = true
indent = " "
lines_after_imports = 2
multi_line_output = 3
order_by_type = true
use_parentheses = true