You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This installs the package in editable mode with all development dependencies including testing tools and pre-commit hooks.
25
+
26
+
## Set Up Pre-commit Hooks
27
+
28
+
This project uses [pre-commit](https://pre-commit.com/) to maintain code quality and consistency. The hooks run automatically before commits and pushes.
29
+
30
+
### Install the git hook scripts
31
+
32
+
```bash
33
+
pre-commit install
34
+
```
35
+
36
+
This will run code formatting, linting, security checks, and tests on every commit.
37
+
38
+
### Run hooks manually
39
+
40
+
To run all hooks on all files manually:
41
+
42
+
```bash
43
+
pre-commit run --all-files
44
+
```
45
+
46
+
### What the hooks do
47
+
48
+
-**Code formatting**: Automatically formats code with `black` and sorts imports with `isort`
49
+
-**Linting**: Checks code quality with `flake8`
50
+
-**Security**: Scans for common security issues with `bandit`
51
+
-**File checks**: Fixes trailing whitespace, ensures files end with newlines, validates YAML/JSON
52
+
-**Tests**: Runs the full test suite (via `pytest`)
0 commit comments