-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (27 loc) · 901 Bytes
/
Makefile
File metadata and controls
35 lines (27 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Makefile for Documentation (Bastage-style with plugins)
.PHONY: docs clean-docs serve-docs lint format fix
# Directory for built docs
DOCS_BUILD_DIR=site
# Linting and formatting
lint:
@echo "Running flake8 lint checks..."
flake8 src flask_app tests
format:
@echo "Running black code formatter..."
black --verbose --diff --color src flask_app tests || true
fix:
@echo "Running pre-commit hooks (ruff, ruff-format, etc.)..."
pre-commit run --all-files || true
@echo "Auto-formatting and linting complete (errors ignored)."
# Default target: build docs
docs:
@echo "Building documentation with Docker image..."
docker run --rm -v $(PWD):/docs squidfunk/mkdocs-material build --clean
# Serve docs locally
serve-docs:
@echo "Serving documentation at http://127.0.0.1:8000"
mkdocs serve
# Clean built docs
clean-docs:
@echo "Cleaning built documentation..."
rm -rf $(DOCS_BUILD_DIR)