How to migrate existing merge requests to auto-formatted code¶
- Fetch the latest changes.
- Merge or rebase the changes before the auto-formatter commit. There might be conflicts at this stage, carefully review those changes and resolve the conflicts.
-
Install ruff.
-
Auto-format and commit your code.
-
Merge the formatted code. This shouldn't have any conflicts.
-
Merge the develop branch. There might be conflicts at this stage, carefully review those changes and resolve the conflicts.
Optional step:¶
- Configure your git blame to ignore the formatting changes.