Skip to content

Commit 5be187d

Browse files
chore: add pre-commit as a development dependency (#317)
1 parent 93b5a00 commit 5be187d

3 files changed

Lines changed: 105 additions & 13 deletions

File tree

docs/DEVELOPMENT.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ Automatically run quality checks before each commit using pre-commit hooks.
6868

6969
2. **Install the git hooks:**
7070
```bash
71-
pre-commit install
71+
uv run pre-commit install
7272
```
7373

7474
3. **Run on all files (one-time init):**
7575
```bash
76-
pre-commit run --all-files
76+
uv run pre-commit run --all-files
7777
```
7878

7979
### What It Does
@@ -91,15 +91,16 @@ Hooks run automatically on `git commit`. If checks fail, the commit is blocked u
9191
### Manual Hook Execution
9292

9393
Run hooks manually without committing:
94+
9495
```bash
9596
# Run on all files
96-
pre-commit run --all-files
97+
uv run pre-commit run --all-files
9798

9899
# Run on staged files only
99-
pre-commit run
100+
uv run pre-commit run
100101

101102
# Run specific hook
102-
pre-commit run ruff-check
103+
uv run pre-commit run ruff-check
103104
```
104105

105106
## Build Project

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ dev = [
8181
"langchain-community>=0.3.0",
8282
"litellm>=1.40.0",
8383
"langchain-litellm>=0.6.6",
84+
"pre-commit>=4.6.2",
8485
]
8586

8687
[tool.pytest.ini_options]

uv.lock

Lines changed: 98 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)