Skip to content

Cache looking up isort config and skip sorting of imports on template expressions - #26

Merged
berendkleinhaneveld merged 1 commit into
masterfrom
optimization-skip-sorting-template
Nov 24, 2025
Merged

Cache looking up isort config and skip sorting of imports on template expressions#26
berendkleinhaneveld merged 1 commit into
masterfrom
optimization-skip-sorting-template

Conversation

@berendkleinhaneveld

Copy link
Copy Markdown
Contributor

Cache the result of figuring out whether isort is configured.
And make sure to skip sorting of imports for formatting template expressions.

@berendkleinhaneveld
berendkleinhaneveld merged commit dcbd7ea into master Nov 24, 2025
9 checks passed
@berendkleinhaneveld
berendkleinhaneveld deleted the optimization-skip-sorting-template branch November 24, 2025 13:29
berendkleinhaneveld added a commit that referenced this pull request Nov 24, 2025
This version includes:

* benchmarks on CI #22 #28 
* improved CLI output when dealing with multiple files (more like ruff, although less detailed) #23 
* use current working directory as default path argument (like ruff) #29
* major performance improvements
    * reduce disk access #25 
    * only sort when needed and cache the setting lookup #26 
    * batch formatting of template expression in one go #27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant