Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use Black to format Python files (#14161)
Switch from yapf to Black to better align with the LLVM and broader Python community. I decided not to go with Pyink as it seems much less popular and differs in formatting style beyond indentation. - Reformat all python files outside of `third_party` with black. - Update the lint workflow to use black. This only considers files modified by the PR. - Delete old dotfiles. The command used to reformat all files at once: ```shell fd -e py --exclude third_party | xargs black ``` To learn more about Back, see: https://black.readthedocs.io/en/stable/ and https://github.com/psf/black. In the next PR, once the commit SHA of this PR is finalized, I plan to add this commit to `.git-blame-ignore-revs` to keep the blame history clean. Issue: #14135
- Loading branch information