-
Notifications
You must be signed in to change notification settings - Fork 14.3k
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
Update black precommit #22521
Update black precommit #22521
Conversation
@@ -113,7 +113,7 @@ def my_after_func(retry_state): | |||
else: | |||
self.retry_args = dict( | |||
stop=stop_after_attempt(self.retry_limit), | |||
wait=wait_exponential(min=self.retry_delay, max=(2 ** retry_limit)), | |||
wait=wait_exponential(min=self.retry_delay, max=(2**retry_limit)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm that’s an interesting change of style.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In psf/black#538 (where the change was made), it mentions that PEP 8 advises to only use whitespace to help make operator precedence more clear (**
has a high precedence), and to not use it otherwise.
The PR most likely needs to run full matrix of tests because it modifies parts of the core of Airflow. However, committers might decide to merge it quickly and take the risk. If they don't merge it quickly - please rebase it to the latest main at your convenience, or amend the last commit of the PR, and push it with --force-with-lease. |
Use latest version of black, drop py36, and add py310.
Use latest version of black (first "non-beta" release 🎉), drop py36, and add py310.