Micha Reiser

Results 768 comments of Micha Reiser

Interesting. Could you try running ruff with `ruff check --select I -v file.py` and share the logs?

Can you tell me more about why this is invalid, I'm trying to understand the issue you're facing

I suggest we just link to Ruff's advisory https://github.com/astral-sh/ruff/issues/16206

> However when I run from the root with only the config in the submodule and no settings in the root, it seems Ruff does not find and use the...

@Denis-Alexeev The problem here is that the line 8 contains no whitespace ([see the rules documentation](https://docs.astral.sh/ruff/rules/line-too-long/#why-is-this-bad)). I think we could do better here now that is kind of cheap to...

Okay, I think the problem is that the following code only runs between statements: https://github.com/astral-sh/ruff/blob/549cc1e437479ec7fde0dcf3e7360fb95d06076d/crates/ruff_python_formatter/src/statement/suite.rs#L165-L216 But the code path is not executed before a clause header.

Okay, I don't think we can fix this bug right now because it would change formatting of existing code. My naive approach of duplicating some of the logic into the...

Not a very good reason but I think one reason is that `generate-shell-completion` kind of messes with the `ruff --help` layout. But we could solve this by shortening the command...