Skip to content

Commit 282b7bd

Browse files
committed
Drop hatch and pre-commit from the dev dependencies
Both depend on virtualenv, which brings filelock into uv.lock, so every filelock advisory lands on this lockfile even though the CLI never imports it. Neither needs to live in the project environment: CI installs its own hatch through the setup-hatch action, `uv build` calls the hatchling backend from build-system directly, and pre-commit builds a separate environment for each hook. Remove hatch and pre-commit from the dev extra, along with the dependency group that held a second pre-commit requirement. The contributor docs use `uv build` and install pre-commit as a uv tool.
1 parent 73efbd0 commit 282b7bd

4 files changed

Lines changed: 2 additions & 497 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Before opening a pull request, run:
1515

1616
```bash
1717
make test
18-
uv run hatch build
18+
uv build
1919
uv run python -m twine check dist/*
2020
```
2121

‎docs/development.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ GitLab:
8989
python -m venv .venv
9090
source .venv/bin/activate
9191
uv sync
92-
uv add --dev pre-commit
92+
uv tool install pre-commit
9393
pre-commit install
9494
```
9595

‎pyproject.toml‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ dev = [
5454
"ruff==0.17.6",
5555
"twine==7.0.0", # for building
5656
"uv==0.13.10", # for dependency management
57-
"pre-commit==4.7.0",
58-
"hatch==1.18.2"
5957
]
6058

6159
[project.scripts]
@@ -167,8 +165,3 @@ docstring-code-line-length = "dynamic"
167165

168166
[tool.hatch.build.targets.wheel]
169167
include = ["socketsecurity", "LICENSE"]
170-
171-
[dependency-groups]
172-
dev = [
173-
"pre-commit>=4.3.0",
174-
]

0 commit comments

Comments
 (0)