Skip to content

Commit

Permalink
Switch from pip-check-reqs to deptry
Browse files Browse the repository at this point in the history
  • Loading branch information
adamtheturtle committed Feb 21, 2024
1 parent ff38315 commit 8f11a95
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
15 changes: 8 additions & 7 deletions lint.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8f11a95

Please sign in to comment.