ruff/crates/ruff_linter
Charlie Marsh a3e67abf4c
Add newlines before comments in E305 (#12606)
## Summary

There's still a problem here. Given:

```python
class Class():
    pass

    # comment

    # another comment
a = 1
```

We only add one newline before `a = 1` on the first pass, because
`max_precedling_blank_lines` is 1... We then add the second newline on
the second pass, so it ends up in the right state, but the logic is
clearly wonky.

Closes https://github.com/astral-sh/ruff/issues/11508.
2024-07-31 23:11:00 -04:00
..
resources Add newlines before comments in E305 (#12606) 2024-07-31 23:11:00 -04:00
src Add newlines before comments in E305 (#12606) 2024-07-31 23:11:00 -04:00
__init__.py [pylint] (Re-)Implement import-private-name (C2701) (#9553) 2024-01-16 14:03:11 -05:00
Cargo.toml Fix NFKC normalization bug when removing unused imports (#12571) 2024-07-30 09:54:35 +00:00