ruff/crates/ruff_workspace
Jelmer Vernooij 9d76e4e0b9
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.
2023-11-14 21:45:51 +00:00
..
src isort: Support disabling sections with `no-sections = true` (#8657) 2023-11-14 21:45:51 +00:00
Cargo.toml Bump tempfile from 3.8.0 to 3.8.1 (#8345) 2023-10-30 09:06:48 +00:00