From feb35aae4294c61617841e4d3649c7522ccf3fa4 Mon Sep 17 00:00:00 2001 From: Herumb Shandilya Date: Fri, 17 May 2024 02:52:33 +0530 Subject: [PATCH] makefile command fixes --- Makefile | 14 ++++++++++---- README.md | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index f3fa508..fe999a2 100644 --- a/Makefile +++ b/Makefile @@ -10,20 +10,26 @@ MKDOCS = mkdocs # Define targets .PHONY: all lint type-check test docs clean -all: lint type-check test docs +all: lint fix type-check test lint: $(RUFF) check . +fix: + $(RUFF) --fix + type-check: - $(PYRIGHT) . + poetry run $(PYRIGHT) test: - $(PYTEST) tests/ + PYTHONPATH=$PYTHONPATH:. $(PYTEST) tests/ -docs: +build-docs: $(MKDOCS) build +serve-docs: + $(MKDOCS) serve + clean: rm -rf __pycache__ rm -rf .pytest_cache diff --git a/README.md b/README.md index f698134..80f2671 100644 --- a/README.md +++ b/README.md @@ -46,4 +46,4 @@ While Pirate is currently focused on negative mining, the ultimate goal is to ma ## License -Pirate is licensed under the Apache License 2.0. For more details, see the [LICENSE](./LICENSE) file. \ No newline at end of file +Pirate is licensed under the Apache License 2.0. For more details, see the [LICENSE](./LICENSE) file. \ No newline at end of file