generated from ran-isenberg/aws-lambda-handler-cookbook
-
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (32 loc) · 1.09 KB
/
Makefile
File metadata and controls
48 lines (32 loc) · 1.09 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
44
45
46
47
48
.PHONY: dev format format-fix lint complex pre-commit mypy-lint deps unit pipeline-tests docs lint-docs update-deps pr push-docs
VENV ?= .venv
PYTHON=$(VENV)/bin/python
dev:
uv sync --frozen
format:
uv run ruff check . --fix
format-fix:
uv run ruff format .
lint:
uv run mypy --pretty aws_lambda_env_modeler docs/snippets tests
complex:
uv run radon cc -e 'tests/*,cdk.out/*,node_modules/*,site/*' .
uv run xenon --max-absolute A --max-modules A --max-average A -e 'tests/*,.venv/*,cdk.out/*,node_modules/*,site/*' .
pre-commit:
uv run pre-commit run -a --show-diff-on-failure
deps:
uv pip compile pyproject.toml --group dev > lib_requirements.txt
unit:
uv run pytest tests/unit --cov-config=.coveragerc --cov=aws_lambda_env_modeler --cov-report xml
pr: deps pre-commit complex lint lint-docs unit
pipeline-tests:
uv run pytest tests/unit --cov-config=.coveragerc --cov=aws_lambda_env_modeler --cov-report xml
docs:
uv run zensical serve
lint-docs:
npx markdownlint-cli --fix "docs"
update-deps:
uv lock --upgrade
uv run pre-commit autoupdate
push-docs:
uv run zensical build --clean