Skip to content

Commit c258566

Browse files
committed
Simplify deptry setup by using new pep621_dev_dependency_groups option
1 parent 2372a34 commit c258566

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

lint.mk

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,7 @@ TEMPFILE:= $(shell mktemp)
3636

3737
.PHONY: deptry
3838
deptry:
39-
uv pip compile --no-deps pyproject.toml > $(TEMPFILE)
40-
mv pyproject.toml pyproject.bak.toml
41-
deptry --requirements-txt=$(TEMPFILE) src/ || (mv pyproject.bak.toml pyproject.toml && exit 1)
42-
mv pyproject.bak.toml pyproject.toml
39+
deptry src/
4340

4441
.PHONY: pylint
4542
pylint:

pyproject.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,6 @@ dev = [
334334
"types-PyYAML==6.0.12.20240311",
335335
"types-requests==2.31.0.20240311",
336336
"urllib3==2.2.1",
337-
"uv==0.1.24",
338337
"vulture==2.11",
339338
"vws-python==2024.2.19",
340339
"VWS-Test-Fixtures==2023.3.5",
@@ -363,3 +362,11 @@ typeCheckingMode = "strict"
363362
# We have too many errors because of
364363
# docker-py not being typed.
365364
ignore = ["tests/mock_vws/test_docker.py"]
365+
366+
[tool.deptry]
367+
pep621_dev_dependency_groups = ["dev"]
368+
369+
[tool.deptry.per_rule_ignores]
370+
# tzdata is needed on Windows for zoneinfo to work.
371+
# See https://docs.python.org/3/library/zoneinfo.html#data-sources.
372+
DEP002 = ["tzdata"]

0 commit comments

Comments
 (0)