Skip to content

Commit 38c0c82

Browse files
add ruff/mypy + allow claude to run some commands directly
1 parent 82aa82e commit 38c0c82

File tree

4 files changed

+560
-2
lines changed

4 files changed

+560
-2
lines changed

.claude/settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"Bash(uv run pytest:*)",
5+
"Bash(git add:*)",
6+
"Bash(uv run mypy:*)"
7+
],
8+
"deny": []
9+
}
10+
}

.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"}
@@ -68,6 +69,9 @@ lines-after-imports = 2
6869
[tool.setuptools_scm]
6970
version_file = "src/pluggy/_version.py"
7071

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

0 commit comments

Comments
 (0)