ruff/crates/ruff_python_codegen/src
Charlie Marsh bd46cd1fcf
Infer indentation with imports when logical indent is absent (#11608)
## Summary

In an `__init__.py` file, it's not uncommon to lack a logical indent
(since it may just contain imports). In such cases, we were always
falling back to four-space indent. This PR adds detection for indents
within import groups.

Closes https://github.com/astral-sh/ruff/issues/11606.
2024-05-30 00:18:07 -04:00
..
generator.rs Refactor the ExprDict node (#11267) 2024-05-07 11:46:10 +00:00
lib.rs Unify enums used for internal representation of quoting style (#10383) 2024-03-13 17:19:17 +00:00
stylist.rs Infer indentation with imports when logical indent is absent (#11608) 2024-05-30 00:18:07 -04:00