Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 846 Bytes

File metadata and controls

28 lines (17 loc) · 846 Bytes

Using Pre-commit

In addition to running the style check yourself, it is possible to configure a precommit-hook, which will run the style check before committing (git commit). The pre-commit is configured in the .pre-commit-config.yaml configuration file.

  1. You will need to install the dependency pre-commit and set up the hook:

    pip3 install pre-commit
    pre-commit install
  2. Check the hook (or do git commit):

    pre-commit run --all
.. seealso::
    If you want to commit without checking the tests, you need to add the option `--no-verify`

    .. code-block:: bash

        git commit -m "your message" --no-verify