Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ To use the [pre-commit](https://pre-commit.com) integration, put this in your
```

This requires your build dependencies, but in doing so, it can cache the
environment, making it quite fast. If you don't mind slower runs and don't want
to require build dependency listing:
environment, making it quite fast. The installation is handled by pre-commit;
see [`pre-commit-uv`](https://pypi.org/p/pre-commit-uv) if you want to try to
optimize the initial setup. If you don't mind slower runs and don't want to
require a build dependency listing:

```yaml
- repo: https://github.com/henryiii/check-sdist
Expand All @@ -73,6 +75,9 @@ to require build dependency listing:
args: [--inject-junk]
```

This one defaults to including `uv` in `additional_dependencies`; you shouldn't
have to specify anything else.

### Configuration

To configure, these options are supported in your `pyproject.toml` file:
Expand Down
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,11 @@ check-sdist = "check_sdist.schema:get_schema"
[tool.hatch]
version.path = "src/check_sdist/__init__.py"
envs.default.features = ["test"]
envs.hatch-test.features = ["test", "cli"]
envs.hatch-test.features = ["test"]


[tool.uv]
dev-dependencies = ["check-sdist[test]"]


[tool.pytest.ini_options]
Expand Down