From c258566dfd5c724a97a313ba29af1d69bed1eb8f Mon Sep 17 00:00:00 2001 From: Adam Dangoor Date: Tue, 26 Mar 2024 10:38:26 +0000 Subject: [PATCH] Simplify deptry setup by using new pep621_dev_dependency_groups option --- lint.mk | 5 +---- pyproject.toml | 9 ++++++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/lint.mk b/lint.mk index 7a95cb6d1..200bfae5f 100644 --- a/lint.mk +++ b/lint.mk @@ -36,10 +36,7 @@ TEMPFILE:= $(shell mktemp) .PHONY: deptry deptry: - uv pip compile --no-deps pyproject.toml > $(TEMPFILE) - mv pyproject.toml pyproject.bak.toml - deptry --requirements-txt=$(TEMPFILE) src/ || (mv pyproject.bak.toml pyproject.toml && exit 1) - mv pyproject.bak.toml pyproject.toml + deptry src/ .PHONY: pylint pylint: diff --git a/pyproject.toml b/pyproject.toml index 8bf5afb5d..b53af7aee 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -334,7 +334,6 @@ dev = [ "types-PyYAML==6.0.12.20240311", "types-requests==2.31.0.20240311", "urllib3==2.2.1", - "uv==0.1.24", "vulture==2.11", "vws-python==2024.2.19", "VWS-Test-Fixtures==2023.3.5", @@ -363,3 +362,11 @@ typeCheckingMode = "strict" # We have too many errors because of # docker-py not being typed. ignore = ["tests/mock_vws/test_docker.py"] + +[tool.deptry] +pep621_dev_dependency_groups = ["dev"] + +[tool.deptry.per_rule_ignores] +# tzdata is needed on Windows for zoneinfo to work. +# See https://docs.python.org/3/library/zoneinfo.html#data-sources. +DEP002 = ["tzdata"]