forked from guardrails-ai/guardrails
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (24 loc) · 712 Bytes
/
Makefile
File metadata and controls
33 lines (24 loc) · 712 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
MKDOCS_SERVE_ADDR ?= localhost:8000 # Default address for mkdocs serve, format: <host>:<port>, override with `make docs-serve MKDOCS_SERVE_ADDR=<host>:<port>`
autoformat:
black guardrails/ tests/
isort --atomic guardrails/ tests/
docformatter --in-place --recursive guardrails tests
lint:
isort -c guardrails/ tests/
black guardrails/ tests/ --check
flake8 guardrails/ tests/
test:
pytest tests/
test-basic:
set -e
python -c "import guardrails as gd"
python -c "import guardrails.version as mversion"
test-cov:
pytest tests/ --cov=./ --cov-report=xml
docs-serve:
mkdocs serve -a $(MKDOCS_SERVE_ADDR)
docs-deploy:
mkdocs gh-deploy
dev:
pip install -e ".[dev]"
all: autoformat lint docs test