This repository has been archived by the owner on Nov 3, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Patch description
In running pre-commit hook, one might run into the following error:
This is due to the fact that black version before 22.3.0 won't work with click>=8.1.0 (see https://l.workplace.com/l.php?u=https%3A%2F%2Fgithub.com%2Fpsf%2Fblack%2Fissues%2F2964&h=AT2D2RfKmHXQkTwfYZw2USSuOmioZV507dYGfbP2P2kpFXCW-tu0mjxCiOLduxb549xZDeqbp0OjF4gTBe9s23vAr3yUfK9TR0sqSu_zHpQcP7ypcuzU5kA2i_wDebMOo5L_L4uXGjPcOrJo2cGMY5ZLu2eRkx0vIJCc&__tn__=-UK-R&c[0]=AT2a7FL9uX5KXig9Q6tYmBNYQ-hqfwmSksT3xE8uNsv3xRQ4Ch9MdOmVL4NnYNa3yZc-1ln94aW0PynLWjQfdibF24sSS4oV-dUKpEl1rZJuoQnHDgl_B-EzapetqH-vGVXoAJh3fer_SgVrff8qRozz5zr8)
Thanks to @emilydinan for this proposed solution.
Testing steps
CI pre-commit
Other information