Skip to content

Commit c065040

Browse files
Add uv dependency management and dev tooling
- Add dependency-groups for dev and testing in pyproject.toml - Add mypy and ruff to dev dependencies - Configure uv to use both groups by default - Add uv.lock for reproducible environments - Update .gitignore for uv cache This enables faster, more reliable dependency management using uv.
1 parent 252184c commit c065040

File tree

4 files changed

+533
-3
lines changed

4 files changed

+533
-3
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,6 @@ pip-wheel-metadata/
6767

6868
# pytest-benchmark
6969
.benchmarks/
70+
71+
# Claude Code local settings
72+
.claude/settings.local.json

pyproject.toml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ readme = {file = "README.rst", content-type = "text/x-rst"}
3535
requires-python = ">=3.9"
3636

3737
dynamic = ["version"]
38-
[project.optional-dependencies]
39-
dev = ["pre-commit", "tox"]
38+
[dependency-groups]
39+
dev = ["pre-commit", "tox", "mypy", "ruff"]
4040
testing = ["pytest", "pytest-benchmark", "coverage"]
4141

42+
4243
[tool.setuptools]
4344
packages = ["pluggy"]
4445
package-dir = {""="src"}
@@ -67,6 +68,9 @@ lines-after-imports = 2
6768

6869
[tool.setuptools_scm]
6970

71+
[tool.uv]
72+
default-groups = ["dev", "testing"]
73+
7074
[tool.towncrier]
7175
package = "pluggy"
7276
package_dir = "src/pluggy"

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ commands=
99
setenv=
1010
_PYTEST_SETUP_SKIP_PLUGGY_DEP=1
1111
coverage: _PLUGGY_TOX_CMD=coverage run -m pytest
12-
extras=testing
12+
dependency_groups=testing
1313
deps=
1414
coverage: coverage
1515
pytestmain: git+https://github.com/pytest-dev/pytest.git@main

0 commit comments

Comments
 (0)