diff --git a/Makefile b/Makefile index e215a0026..71db4ef0b 100644 --- a/Makefile +++ b/Makefile @@ -9,12 +9,11 @@ SPHINXOPTS := -W lint: \ actionlint \ check-manifest \ + deptry \ doc8 \ linkcheck \ mypy \ ruff \ - pip-extra-reqs \ - pip-missing-reqs \ pyproject-fmt \ pyright \ pyright-verifytypes \ diff --git a/lint.mk b/lint.mk index 24c99b3e4..568acb340 100644 --- a/lint.mk +++ b/lint.mk @@ -28,13 +28,14 @@ fix-ruff: ruff --fix . ruff format . -.PHONY: pip-extra-reqs -pip-extra-reqs: - pip-extra-reqs --requirements-file=<(uv pip compile --no-deps pyproject.toml) src/ - -.PHONY: pip-missing-reqs -pip-missing-reqs: - pip-missing-reqs --requirements-file=<(uv pip compile --no-deps pyproject.toml) src/ +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 .PHONY: pylint pylint: diff --git a/pyproject.toml b/pyproject.toml index 282640eae..c0a444cf2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -255,11 +255,11 @@ dependencies = [ dev = [ "actionlint-py==1.6.26.11", "check-manifest==0.49", + "deptry==0.12.0", "doc8==1.1.1", "freezegun==1.4.0", "furo==2024.1.29", "mypy==1.8.0", - "pip_check_reqs==2.5.3", "pydocstyle==6.3", "pyenchant==3.2.2", "Pygments==2.17.2",