Skip to content

Commit

Permalink
Update wording in Code Quality doc [build docs]
Browse files Browse the repository at this point in the history
  • Loading branch information
Molkree committed Jul 13, 2021
1 parent 9780457 commit bbbd5ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/development/code_quality.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Black

A better method is to run Black automatically - first `integrate it within the code editor <https://black.readthedocs.io/en/stable/editor_integration.html>`_ you use and then enable the "format on save" or "format on type" option in your editor settings.

If you've installed pre-commit hooks (`pre-commit install`) Black will run before each commit.
Alternatively, Black will run automatically before each commit if you've installed pre-commit hooks (as mentioned in :ref:`Git worklfow <pre-commit-install>`).

.. warning :: If your code doesn't follow the Black code style, then the Black-check action on your PR will fail.
Expand Down
2 changes: 2 additions & 0 deletions docs/development/git_workflow.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ TARDIS repository clone.
repository will always be immediately available next time you start a Python
interpreter and ``import tardis``.

.. _pre-commit-install:

#. Install pre-commit hooks::

$ pre-commit install --install-hooks
Expand Down

0 comments on commit bbbd5ec

Please sign in to comment.