STYLE enable ruff PLW2901
- [ ] closes #51708
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added relative entries in "to be gradually enabled" inside pyproject.toml.

Hi @MarcoGorelli, I just pushed an update of the PR. I renamed all the variables by setting a more intuitive variable name. Please let me know if it's fine for you. In that case I will continue like this also for the other sections. > thanks for working on this
> 
> to be honest, I'm no longer sold on enabling this code, having seen the changes it entails it probably makes things less clear more often than not. this is my fault for having suggested the issue, sorry about that
> 
> the `line_stripped` change one is nice though, that's probably an improvement
> 
> I'd suggest we:
> 
>     * keep the `line_stripped` change
> 
>     * revert the rest
>       and then we can get this in

Oh no problem, no need to say sorry. To be fair I should've thought a bit more on the variable names. Will wait for a feedback on the last push before continuing. looks like most tests are failing, could you check what it might be please? > looks like most tests are failing, could you check what it might be please?

The line "pandas/core/*" was repeated twice in the pyproject.toml file. I didn't see it in the merge conflict. Now should be fine.
 The error seems to be connected to my changes in the `scripts/no_bool_in_generic.py` file. I will investigate and fix it today. Hi @MarcoGorelli, I think I completed all the requested changes. Please let me know if I missed something. Just updated the branch with main and fixed the bug I introduced.  @MarcoGorelli Sorry I have been away in the last few days. I just pushed the last merge with the main branch. Ideally there should be no more errors. If that is the case do you need any further update of the branch?