-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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 docs for pre-commit (auto linting) #3332
Conversation
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.
Noted some changes for clarity
Also, it would be good to put the standalone command usage here, as we're be running like this for now.
docs/contribute.rst
Outdated
$ unify --quote="'" | ||
$ yapf --exclude=*migrations* --exclude=*settings* --exclude=*scripts* --parallel | ||
We have a strict code style that it's easy to follow since you just have to | ||
install `pre-commit`_ and it will be ran automatically as a pre-commit hook for |
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.
ran -> run
Also, can drop the pre-commit hook for git
, as we aren't actually prescribing that use yet.
docs/contribute.rst
Outdated
$ yapf --exclude=*migrations* --exclude=*settings* --exclude=*scripts* --parallel | ||
We have a strict code style that it's easy to follow since you just have to | ||
install `pre-commit`_ and it will be ran automatically as a pre-commit hook for | ||
git. This hook will run a different linting tools (`autoflake`_, `autopep8`_, |
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.
Also hook
here -- we should prescribe running this as a standalone command for now.
docs/contribute.rst
Outdated
git. This hook will run a different linting tools (`autoflake`_, `autopep8`_, | ||
`docformatter`_, `isort`_, `prospector`_, `unify`_ and `yapf`_) to check your | ||
changes before you commit them and let you know if there are some problems that | ||
weren't able to fix automatically. |
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.
weren't able to fix -> weren't fixed
docs/contribute.rst
Outdated
commands:: | ||
|
||
$ pip install -U pre-commit | ||
$ pre-commit install |
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.
Perhaps note the pre-commit install step as a separate "beta" usage of precommit hooks
No description provided.