Skip to content

Conversation

NicolasHug
Copy link
Member

LMK what you think @pmeier

@NicolasHug NicolasHug changed the title More instructions contributing guide regarding formatting More instructions in contributing guide regarding formatting Oct 4, 2021
Copy link
Collaborator

@pmeier pmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general LGTM. I've added a few inline comments.

Comment on lines +116 to +120
Feel free to read the [pre-commit docs](https://pre-commit.com/#usage) to learn
more and improve your workflow. You'll see for example that `pre-commit run
--all-files` will run both `ufmt` and `flake8` without the need for you to
commit anything, and that the `--no-verify` flag can be added to `git commit` to
temporarily deactivate the hooks.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would think that someone who wants to know more about the tools they are using to do that without extra instructions. Given that we only describe how to format / check the code here, I think this can be safely removed. No strong opinion.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For this part, I mostly wanted to mention the pre-commit run --all-files command and the --no-verify flag, which I think are important to know for regular development.
Then it becomes a matter of linking to the docs or not, I feel like there's no harm in encouraging contributors to check them?

@NicolasHug
Copy link
Member Author

Thanks @pmeier for the review. Is it good to go on your side?

@fmassa @datumbox @prabhat00155 do these instructions make sense? Is there anything you think is missing or unclear?

Copy link
Contributor

@prabhat00155 prabhat00155 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks @NicolasHug!

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it, let's merge!

@NicolasHug NicolasHug merged commit b1ef196 into pytorch:main Oct 5, 2021
facebook-github-bot pushed a commit that referenced this pull request Oct 8, 2021
…#4536)

Summary:
* Enhanced contributing guide

* Some more

* Address comments

Reviewed By: NicolasHug

Differential Revision: D31505563

fbshipit-source-id: f791d8115c1d88a7b4e3bb4736f4eac8faf44f0b
mszhanyi pushed a commit to mszhanyi/vision that referenced this pull request Oct 19, 2021
…#4536)

* Enhanced contributing guide

* Some more

* Address comments
cyyever pushed a commit to cyyever/vision that referenced this pull request Nov 16, 2021
…#4536)

* Enhanced contributing guide

* Some more

* Address comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants