ruff
9d76e4e0 - isort: Support disabling sections with ``no-sections = true`` (#8657)

Commit
2 years ago
isort: Support disabling sections with ``no-sections = true`` (#8657) ## Summary This adds a ``no-sections`` option for isort in the linter, similar to the ``no_sections`` option that exists in upstream isort (https://pycqa.github.io/isort/docs/configuration/options.html#no-sections) This option puts all imports except for ``__future__`` into the same section, and is mostly used by monorepos. I've taken a bit of a leap in assuming that ruff wants to support the exact same option; more than happy to refactor if you'd prefer a different way of setting this up. Fixes #8653 ## Test Plan I've added a test and have run it on a large Python codebase that uses isort with --no-sections. The option is disabled by default.
Author
Parents
Loading