build: Add Make targets to local testing and adding dependencies

doc-sources
namuan 1 year ago
parent 75ddabe071
commit 75d7402bd4

@ -12,6 +12,10 @@ deps: ## Install/Update dependencies
poetry lock
poetry run pre-commit autoupdate
local: ## Locally install the package
poetry install
dr-doc-search --help
clean: ## Clean package
find . -type d -name '__pycache__' | xargs rm -rf
find . -type d -name '.temp' | xargs rm -rf
@ -27,6 +31,9 @@ pre-commit: ## Manually run all precommit hooks
pre-commit-tool: ## Manually run a single pre-commit hook
poetry run pre-commit run $(TOOL) --all-files
add: ## Adds a package with poetry - Use make deps to update packages
poetry add $(PACKAGE)
build: pre-commit ## Build package
poetry build

Loading…
Cancel
Save