Skip to content

Commit 02d09e2

Browse files
Remove deptry dependency checker
- Remove deptry from pre-commit hooks - Remove deptry from dev dependencies in pyproject.toml - Remove deptry configuration section - Remove deptry from setup script - Update lockfile to reflect removal
1 parent 24a717a commit 02d09e2

File tree

4 files changed

+3
-69
lines changed

4 files changed

+3
-69
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,7 @@ repos:
6262
- tomli
6363
files: "docs/.*/.*.mdx"
6464

65-
- repo: https://github.com/fpgmaas/deptry.git
66-
rev: "0.23.0"
67-
hooks:
68-
- id: deptry
69-
pass_filenames: false
70-
always_run: true
71-
entry: bash -c "uv run --frozen --all-extras --dev deptry src --ignore DEP001 --extend-exclude 'codegen-examples/.*'"
65+
7266

7367
- repo: https://github.com/renovatebot/pre-commit-hooks
7468
rev: 39.169.3

pyproject.toml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ dev-dependencies = [
9898
"pre-commit-uv>=4.1.4",
9999
"austin-dist>=3.7.0",
100100
"uv>=0.4.25",
101-
"deptry>=0.22.0",
101+
102102
"sybil[pytest]>=9.0.0",
103103
"jsbeautifier<2.0.0,>=1.15.1",
104104
"inflection<1.0.0,>=0.5.1",
@@ -173,21 +173,7 @@ requires = ["hatchling>=1.26.3", "hatch-vcs>=0.4.0", "setuptools-scm>=8.0.0"]
173173
build-backend = "hatchling.build"
174174

175175

176-
[tool.deptry]
177-
extend_exclude = [".*/eval/test_files/.*.py", ".*conftest.py"]
178-
pep621_dev_dependency_groups = ["types"]
179-
[tool.deptry.per_rule_ignores]
180-
DEP002 = [
181-
"hatch-vcs", # Used for version management during build
182-
"hatchling", # Used for building
183-
]
184-
DEP003 = []
185-
DEP004 = "pytest"
186176

187-
[tool.deptry.package_module_name_map]
188-
PyGithub = ["github"]
189-
GitPython = ["git"]
190-
python-dotenv = ["dotenv"]
191177
pydantic-settings = ["pydantic_settings"]
192178
datamodel-code-generator = ["datamodel_code_generator"]
193179
sentry-sdk = ["sentry_sdk"]

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22
uv tool install pre-commit --with pre-commit-uv
3-
uv tool install deptry
3+
44
uv tool update-shell
55
uv venv && source .venv/bin/activate
66
uv sync

uv.lock

Lines changed: 0 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)