Skip to content

Commit

Permalink
add docs for pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ianhi committed Feb 3, 2022
1 parent 184965e commit 3f8c921
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,12 @@ pip install -e ".[test, docs]"
jupyter labextension develop . --overwrite
```

optionally install the pre-commit hooks with:

```bash
pre-commit install
```


Or for classic notebook, you can run:

Expand Down
14 changes: 14 additions & 0 deletions docs/source/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,20 @@ a `guide <https://github.com/firstcontributions/first-contributions#first-contri
Also feel free to ask for help/advice on the relevant Github `issue <https://github.com/cytoscape/ipycytoscape/issues>`_
or in the `Gitter chat <https://gitter.im/QuantStack/Lobby>`_.


pre-commit
^^^^^^^^^^

You can install `pre-commit <pre-commit.com>`_ hooks like so:

.. code-block:: bash
pip install pre-commit
pre-commit install
This will then run automated checks whenever you ``git commit``. If you don't want to do this then that's
ok as the pre-commit.ci bot will automatically push fixes to your pull requests.

Documentation
-------------

Expand Down

0 comments on commit 3f8c921

Please sign in to comment.