|
46 | 46 | - [Pre-requisites](#pre-requisites) |
47 | 47 | - [Setup](#setup) |
48 | 48 | - [Main commands](#main-commands) |
| 49 | + - [Git hooks](#git-hooks) |
49 | 50 |
|
50 | 51 | ## Usage |
51 | 52 |
|
@@ -789,16 +790,28 @@ The following tools are required to work with the project: |
789 | 790 | make install |
790 | 791 | ``` |
791 | 792 |
|
| 793 | +### Git hooks |
| 794 | + |
| 795 | +You may optionally install Git hooks that will automatically run the linting step on Git push. You only need to do it once for the given repository. |
| 796 | + |
| 797 | +```sh |
| 798 | +make install_git_hooks |
| 799 | +``` |
| 800 | + |
| 801 | +> [!IMPORTANT] |
| 802 | +> This command doesn't work if you have already installed Git hooks locally or globally. |
| 803 | +
|
792 | 804 | ### Main commands |
793 | 805 |
|
794 | | -| Command | Description | |
795 | | -|-------------------------|-----------------------------------------------| |
796 | | -| `make install` | Install virtual environment and dependencies | |
797 | | -| `make build` | Build the package | |
798 | | -| `make clean` | Clean virtual environment and build artifacts | |
799 | | -| `make lint` | Run linters | |
800 | | -| `make format` | Run code formatters | |
801 | | -| `make test` | Run tests (e.g., `make test PYTHON=3.12`) | |
802 | | -| `make integration_test` | Run integration tests | |
803 | | -| `make coverage` | Generate test coverage report | |
804 | | -| `make help` | Show available commands | |
| 806 | +| Command | Description | |
| 807 | +|---------------------------|-----------------------------------------------| |
| 808 | +| `make install` | Install virtual environment and dependencies | |
| 809 | +| `make build` | Build the package | |
| 810 | +| `make clean` | Clean virtual environment and build artifacts | |
| 811 | +| `make install_git_hooks` | Install the git hooks | |
| 812 | +| `make lint` | Run linters | |
| 813 | +| `make format` | Run code formatters | |
| 814 | +| `make test` | Run tests (e.g., `make test PYTHON=3.12`) | |
| 815 | +| `make integration_test` | Run integration tests | |
| 816 | +| `make coverage` | Generate test coverage report | |
| 817 | +| `make help` | Show available commands | |
0 commit comments