Summary
Current docs have the example for setting import-heading as:
[lint.isort]
future = "Future imports"
standard-library = "Standard library imports"
third-party = "Third party imports"
first-party = "First party imports"
local-folder = "Local folder imports"
But it requires a dict (and actually specifying the import-heading) as:
[lint.isort]
import-heading = {
future = "Future imports",
standard-library = "Standard library imports",
third-party = "Third party imports",
first-party = "First party imports",
local-folder = "Local folder imports",
}
for ruff.toml
or
[tool.ruff.lint.isort]
import-heading = {
future = "Future imports",
standard-library = "Standard library imports",
third-party = "Third party imports",
first-party = "First party imports",
local-folder = "Local folder imports",
}
for pyproject.toml
Version
0.15.1
Summary
Current docs have the example for setting import-heading as:
But it requires a dict (and actually specifying the import-heading) as:
for ruff.toml
or
for pyproject.toml
Version
0.15.1