-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (40 loc) · 1.83 KB
/
Makefile
File metadata and controls
61 lines (40 loc) · 1.83 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Makefile for GSP project
help: ## Show this help message
@grep -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-20s\033[0m %s\n", $$1, $$2}'
# Test targets
test: ## Run all tests
cd tests
pytest
test_verbose: ## Run all tests with verbose output
cd tests
pytest -v
test_examples_image: ## Run all example scripts to generate matplotlib images
python ./scripts/run_all_examples.py -- matplotlib_image
test_examples_commands: ## Run all example scripts to test commands cycles
python ./scripts/run_all_examples.py -- commands -cyc
test_examples_output: ## Check all example outputs against expected outputs
python ./scripts/check_expected_output.py
# Linting targets
lint_checker: lint_checker_src lint_checker_examples ## Run lint checker on source and examples
@echo "Linting completed."
lint_checker_src: ## Run lint checker on source files
pyright gsp/**/*.py
lint_checker_examples: ## Run lint checker on example files
pyright examples/**/*.py
# ./examples/output is gitignored, so we need to force add and commit any changes
examples_output_force_commit: ## Force add and commit changes in examples/output
git add -f examples/output
git commit -m "Force commit of recent examples/output images"
# Documentation targets
doc_build: ## Build the documentation using MkDocs
# Build the documentation using MkDocs
mkdocs build
doc_deploy: ## Deploy the documentation to GitHub Pages
# Deploy the documentation to GitHub Pages
mkdocs gh-deploy
doc_open: doc_build ## Open the built documentation in the default web browser
# Open the documentation in the default web browser
open site/index.html
doc_serve: ## Serve the documentation locally - useful for development
# Serve the documentation locally - useful for development - open in browser with http://localhost:8000
mkdocs serve