Skip to content

Commit

Permalink
docs: update README with info about projects in subdirectories
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock authored Jan 13, 2025
1 parent ba7b31d commit 5fec855
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,20 @@ To run the hook over multiple files at the same time:
files: ^requirements-dev\.(in|txt)$
```

To run a hook on a project within a subdirectory (e.g. monorepo):

```yaml
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.5.18
hooks:
# Update the uv lockfile
- id: uv-lock
# Change <path/to/project> to your relative path
files: <path/to/project>/pyproject.toml
args: [--project, <path/to/project>]
```

To synchronize your dependencies upon branch checkout, pull or rebase:

```yaml
Expand Down

0 comments on commit 5fec855

Please sign in to comment.