Alex Waygood
Alex Waygood
I'll defer to @benjaminp's judgement on this one -- I'm really not the right reviewer for this, unfortunately :( Please ping me again if you still haven't had a review...
> @charliermarsh just checking in - is there any way to configure the `isort` settings in `--isolated` mode, or do I just have to wait? No worries if so, I'm...
I'm working on a PR to implement this feature.
> One thing that both of these don't support is `__all__` with multiple sections in it that should be sorted separately, e.g. something like what `typing`'s code does (well, sort...
> This is an interesting question. I would expand the example by one that uses a non-section defining comment [...] In this case, I would expect the comment to move...
> For sort by definition order I'm not really sure what would work best FWIW, my initial implementation of this rule is just going to do "sort by alphabetical order",...
> Do you know how common the use of sections is? If they're uncommon, then disabling sorting for the entire `__all__` might be a reasonable option. I _think_ they're reasonably...
Okay, https://github.com/astral-sh/ruff/pull/9474 has now been merged! The next release of Ruff should include a rule and autofix to keep your `__all__` definitions sorted. The sort order you get is an...
> Why [CFQ001](https://github.com/best-doctor/flake8-functions/blob/master/flake8_functions/function_length.py?rgh-link-date=2023-05-15T07%3A13%3A05Z) and [CFQ004](https://github.com/best-doctor/flake8-functions/blob/master/flake8_functions/function_returns_amount.py?rgh-link-date=2023-05-15T07%3A13%3A05Z) is done? PLR0915/PLR0911 is not equal rule for CFQ001/CFQ004! I've unticked `CFQ001` -- you're right, that does seem distinct from `PLR0915` to me. `CFQ004` _does_...
Hi! I got here from investigating a bug report over at CPython: - https://github.com/python/cpython/issues/105134 The behaviour of raising `TypeError` when you try to access `__dict__` on `wrapt` objects seems to...