-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (34 loc) · 916 Bytes
/
Makefile
File metadata and controls
50 lines (34 loc) · 916 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
PYTHON ?= python3
PIP ?= $(PYTHON) -m pip
.PHONY: install install-dev lint format format-check typecheck test test-cov security dep-scan smoke build ci clean
install:
$(PIP) install -e .
install-dev:
$(PIP) install -e .
$(PIP) install pytest pytest-cov ruff mypy bandit safety pip-audit build twine pre-commit
lint:
ruff check .
format:
ruff format .
format-check:
ruff format --check .
typecheck:
mypy kernels implementations
test:
pytest
test-cov:
pytest --cov=kernels --cov=implementations --cov-report=term-missing --cov-fail-under=80
security:
bandit -r kernels implementations -q
dep-scan:
safety check --full-report || true
pip-audit
smoke:
./scripts/smoke.sh
build:
$(PYTHON) -m build
twine-check:
twine check dist/*
ci: lint format-check typecheck security test-cov smoke build
clean:
rm -rf .mypy_cache .pytest_cache .ruff_cache .coverage htmlcov dist build *.egg-info .tmp