-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (47 loc) · 1.55 KB
/
Makefile
File metadata and controls
61 lines (47 loc) · 1.55 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
# Simple Makefile for UQGrid development
.PHONY: help install install-dev install-petsc test test-fast clean lint coverage ci docs docs-serve docs-deploy
help:
@echo "Available commands:"
@echo " install - Install package in development mode"
@echo " install-dev - Install with development dependencies"
@echo " install-petsc - Install with PETSc support"
@echo " test - Run all tests"
@echo " test-fast - Run fast tests only (skip adjoint tests)"
@echo " lint - Run static analysis checks"
@echo " coverage - Run tests with coverage reporting"
@echo " ci - Run local continuous-integration suite"
@echo " docs - Build MkDocs site (requires [docs] extras)"
@echo " docs-serve - Serve docs locally with live reload"
@echo " docs-deploy - Deploy docs to GitHub Pages"
@echo " clean - Clean build artifacts"
# Installation
install:
python3 -m pip install -e .
install-dev:
python3 -m pip install -e ".[dev]"
install-petsc:
python3 -m pip install -e ".[petsc]"
# Testing
test:
python3 -m pytest
test-fast:
python3 -m pytest -m "not adjoint"
lint:
python3 -m ruff check .
python3 -m mypy uqgrid/simulation/config.py uqgrid/simulation/pflow.py
coverage:
python3 -m pytest --cov=uqgrid --cov-report=term-missing
ci: lint coverage
docs:
mkdocs build --strict
docs-serve:
mkdocs serve
docs-deploy:
mkdocs gh-deploy --force
# Clean up
clean:
rm -rf build/
rm -rf dist/
rm -rf *.egg-info/
find . -type d -name __pycache__ -exec rm -rf {} +
find . -type f -name "*.pyc" -delete