Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
Latest commit
43 lines (31 loc) · 1 KB
/
Copy pathMakefile
File metadata and controls
43 lines (31 loc) · 1 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
# NOPE Python SDK developer targets. Every offline target is what CI runs.
.PHONY: install lint format typecheck test check build generate live live-smoke clean
install:
pip install -e '.[dev]'
lint:
ruff check src tests scripts
ruff format --check src tests scripts
format:
ruff format src tests scripts
ruff check --fix src tests scripts
typecheck:
mypy src tests/typing
# Unit + contract tests; the live suite is excluded by pyproject addopts.
test:
pytest
check: lint typecheck test
build:
rm -rf dist
python -m build
# Regenerate the Literal enums from the sibling ../api checkout.
generate:
python scripts/generate_taxonomy.py
# Live suite: calls api.nope.net and spends balance. Key from NOPE_E2E_API_KEY,
# else NOPE_DEDICATED_CI_KEY in ../api/.env. Serial by design.
live:
NOPE_LIVE=1 pytest -m live tests/live
live-smoke:
NOPE_LIVE=1 SMOKE=1 pytest -m live tests/live
clean:
rm -rf dist build .pytest_cache .mypy_cache .ruff_cache
find . -name __pycache__ -type d -prune -exec rm -rf {} +