-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (29 loc) · 817 Bytes
/
Makefile
File metadata and controls
42 lines (29 loc) · 817 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
.PHONY: test test-unit test-bdd test-integration lint format typecheck build check clean security docs docs-build
test:
pytest tests/ -v --tb=short --cov=call_use --cov-report=term-missing --cov-fail-under=100
test-unit:
pytest tests/ -v -m unit --tb=short
test-bdd:
pytest tests/ -v -m bdd --tb=short
test-integration:
pytest tests/ -v -m integration --tb=short
lint:
ruff check call_use/ tests/
ruff format --check call_use/ tests/
format:
ruff format call_use/ tests/
typecheck:
mypy call_use/ --ignore-missing-imports --check-untyped-defs
security:
bandit -r call_use/ -c pyproject.toml -ll
pip-audit --strict
build: clean
python3 -m build
python3 -m twine check dist/*
check: lint typecheck test build
clean:
rm -rf dist/ build/ *.egg-info
docs:
mkdocs serve
docs-build:
mkdocs build