-
Notifications
You must be signed in to change notification settings - Fork 24.3k
[CI][lintrunner] bump black
version to 24.4.2
#129870
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/129870
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 1b3c3db with merge base fcef6cc ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
ghstack-source-id: ff4ac41 Pull Request resolved: pytorch#129870
ghstack-source-id: 541466b Pull Request resolved: pytorch#129870
ghstack-source-id: 70b972f Pull Request resolved: pytorch#129870
ghstack-source-id: 70b972f Pull Request resolved: pytorch#129870
ghstack-source-id: 182f6f8 Pull Request resolved: pytorch#129870
ghstack-source-id: 7bb00ab Pull Request resolved: pytorch#129870
ghstack-source-id: 7bb00ab Pull Request resolved: pytorch#129870
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
This PR bumps
black
to the latest version to enable 2024 style rather than the old 2023 style.The most significant style enhancement is: Add parentheses around multiline-string, lambda function,
if-else
expressions when in the function argument list orlist
/dict
literals. This improves the code readability.2023 style:
2024 style:
Stack from ghstack (oldest at bottom):
lintrunner
on generated.pyi
stub files in CI #129887torch/utils/data/datapipes/gen_pyi.py
withtorchgen
#129873PYI034
: non-self-return-type in tensor method hints #129886__all__
totorch/nn/functional.pyi
andtorch/return_types.pyi
#129872.pyi
stub files #129420torchgen.utils.FileManager
to acceptpathlib.Path
#129871black
version to 24.4.2 #129870cc @XilunWu @H-Huang @awgu @kwen2501 @wanchaol @fegin @fduwjj @wz337 @wconstab @d4l3k @c-p-i-o @jgong5 @mingfeima @XiaobingSuper @sanchitintel @ashokei @jingxu10 @mcarilli @ptrblck @leslie-fang-intel @albanD @voznesenskym @penguinwu @EikanWang @Guobing-Chen @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @ColinPeppler @amjames @desertfire @chauhang @rec @LucasLLC @MeetVadakkanchery @mhorowitz @pradeepfn @mrshenli @pritamdamania87 @zhaojuanmao @satgera @gqchen @aazzolini @osalpekar @jiayisuse @tianyu-l @peterbell10