Skip to content

Commit 8a3650c

Browse files
committed
update Makefile
1 parent 783f8e9 commit 8a3650c

File tree

1 file changed

+47
-4
lines changed

1 file changed

+47
-4
lines changed

Makefile

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ reinstall: uninstall install
4848
# =============================================================================
4949

5050
py-test:
51-
python -m pytest -x -p no:warnings tests/
51+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -x -p no:warnings tests/
5252

5353
test-examples:
5454
cd tests && python _test_examples.py
@@ -57,7 +57,7 @@ test: py-test test-examples
5757

5858
# Test with minimal dependencies (no sklearn, no viz, no GFO)
5959
test-minimal:
60-
python -m pytest -x -p no:warnings \
60+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -x -p no:warnings \
6161
tests/test_1d_functions.py \
6262
tests/test_2d_functions.py \
6363
tests/test_nd_functions.py \
@@ -68,13 +68,13 @@ test-minimal:
6868

6969
# Integration tests with optimization libraries (requires GFO, optuna, scipy)
7070
test-integrations:
71-
python -m pytest -x -p no:warnings \
71+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest -x -p no:warnings \
7272
tests/test_optimization.py \
7373
tests/test_api/test_search_space.py
7474

7575
# Test with coverage
7676
test-cov:
77-
python -m pytest --cov=surfaces --cov-report=term-missing --cov-report=xml -p no:warnings tests/
77+
PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 python -m pytest --cov=surfaces --cov-report=term-missing --cov-report=xml -p no:warnings tests/
7878

7979
# =============================================================================
8080
# Code Quality
@@ -109,6 +109,40 @@ pre-commit-all:
109109
pre-commit-update:
110110
pre-commit autoupdate
111111

112+
# =============================================================================
113+
# Documentation
114+
# =============================================================================
115+
116+
.PHONY: docs docs-generate docs-build docs-clean docs-serve docs-quick
117+
118+
# Generate documentation assets (catalogs, plots, diagrams)
119+
docs-generate:
120+
python -m docs._generators.generate_all
121+
122+
# Build HTML documentation with Sphinx
123+
docs-build:
124+
cd docs && sphinx-build -b html source build/html
125+
126+
# Full documentation build (generate + build)
127+
docs: docs-generate docs-build
128+
129+
# Clean generated documentation
130+
docs-clean:
131+
rm -rf docs/source/_generated/*
132+
rm -rf docs/build/*
133+
134+
# Serve documentation locally
135+
docs-serve: docs
136+
python -m http.server 8000 -d docs/build/html
137+
138+
# Quick rebuild (skip asset generation)
139+
docs-quick:
140+
cd docs && sphinx-build -b html source build/html
141+
142+
# Check for broken links
143+
docs-linkcheck:
144+
cd docs && sphinx-build -b linkcheck source build/linkcheck
145+
112146
# =============================================================================
113147
# Cleanup
114148
# =============================================================================
@@ -153,6 +187,15 @@ help:
153187
@echo " pre-commit-all Run pre-commit on all files"
154188
@echo " pre-commit-update Update pre-commit hooks"
155189
@echo ""
190+
@echo "Documentation:"
191+
@echo " docs Build full documentation (generate + build)"
192+
@echo " docs-generate Generate documentation assets only"
193+
@echo " docs-build Build HTML documentation only"
194+
@echo " docs-clean Remove generated documentation"
195+
@echo " docs-serve Build and serve documentation locally"
196+
@echo " docs-quick Quick rebuild (skip generation)"
197+
@echo " docs-linkcheck Check for broken links"
198+
@echo ""
156199
@echo "Other:"
157200
@echo " build Build package"
158201
@echo " clean Remove build artifacts"

0 commit comments

Comments
 (0)