forked from guardrails-ai/guardrails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (28 loc) · 851 Bytes
/
Makefile
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
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=./guardrails/ --cov-report=xml
view-test-cov:
pytest tests/ --cov=./guardrails/ --cov-report html && open htmlcov/index.html
docs-serve:
mkdocs serve -a $(MKDOCS_SERVE_ADDR)
docs-deploy:
mkdocs gh-deploy
dev:
pip install -e ".[dev]"
full:
pip install -e ".[all]"
all: autoformat lint docs test