Autofix ruf010
As now `ruff` has an autofix for `RUF010`, I enable the rule.

I separate the PR into 4 commits with the 4 actions I performed, you can review them one by one for a better diff.
- Autofix `RUF010`
- `ruff format`
- Final manual format
- Remove old "unwanted pattern" rule in `pre-commit`

- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Is this rule conflicted with `pandas` style guide? If that's the case, we can move it to "Intentionally disabled" rather than "TODO: Enable gradually" I would be okay enabling `RUF010` and having it apply everywhere @mroeschke Thanks, I removed the old rule in the last commit. `pre-commit` is green again now. Thanks @tqa236 