-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[
flake8-pytest-style
] Add automatic fix for `pytest-parametrize-val…
…ues-wrong-type` (`PT007`) (#10461) ## Summary This adds automatic fixes for the `PT007` rule. I am currently reviewing and adding Ruff rules to Home Assistant. One rule is PT007, which has multiple hundred occurrences in the codebase, but no automatic fix, and this is not fun to do manually, especially because using Regexes are not really possible with this. My knowledge of the Ruff codebase and Rust in general is not good and this is my first PR here, so I hope it is not too bad. One thing where I need help is: How can I have the transformed code to be formatted automatically, instead of it being minimized as it does it now? ## Test Plan Using the existing fixtures and updated snapshots.
- Loading branch information
Showing
6 changed files
with
774 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.