ruff icon indicating copy to clipboard operation
ruff copied to clipboard

feat: Add isort option lines-after-imports

Open reidswan opened this issue 2 years ago • 1 comments

Fixes https://github.com/charliermarsh/ruff/issues/2243

Adds support for the isort option lines_after_imports to insert blank lines between imports and the follow up code.

reidswan avatar Feb 01 '23 14:02 reidswan

This looks good! Just curious: what's the typical use-case here? E.g., what styling do you typically enforce with this setting?

charliermarsh avatar Feb 01 '23 17:02 charliermarsh

it separates the import lines from every following. e.g. with lines-after-imports=2 you prevent E302 from happening.

spaceone avatar Feb 01 '23 18:02 spaceone