-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Modify formatter version in contributing guide #5509
Conversation
💊 CI failures summary and remediationsAs of commit b9a7842 (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
@@ -83,7 +83,7 @@ Instead of relying directly on `black` however, we rely on | |||
[ufmt](https://github.com/omnilib/ufmt), for compatibility reasons with Facebook | |||
internal infrastructure. | |||
|
|||
To format your code, install `ufmt` with `pip install ufmt` and use e.g.: | |||
To format your code, install `ufmt` with `pip install ufmt==1.3.2 black==21.9b0 usort==0.6.4` and use e.g.: |
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.
I think ufmt automatically installs black and usort? Or is it that it does not pin these versions?
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.
ufmt
only has very lose pins: https://github.com/omnilib/ufmt/blob/a5c73d35bcc00a99f2cfbb7f12eb15ef340db9b6/pyproject.toml#L11-L17
Since we check against these versions in CI, we need a strict pin.
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.
Thanks a lot @Dbhasin1!
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.
LGTM!
Hey @datumbox! You merged this PR, but no labels were added. The list of valid labels is available at https://github.com/pytorch/vision/blob/main/.github/process_commit.py |
Summary: Co-authored-by: Dbhasin1 <drishti_b@me.iitr.c.in> Reviewed By: datumbox Differential Revision: D34579509 fbshipit-source-id: c32ed808e31d57c0d9c511a8d2b85c2aa1a4ac63
Follows #5452 (comment)
cc @pmeier