We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a5407d5 commit 7647193Copy full SHA for 7647193
python/Makefile
@@ -20,7 +20,7 @@ test:
20
coverage-html:
21
poetry run pytest --cov-report html
22
23
-pr: lint test security-baseline
+pr: lint test security-baseline complexity-baseline
24
25
build: pr
26
poetry run build
@@ -34,6 +34,12 @@ docs-dev:
34
security-baseline:
35
poetry run bandit --baseline bandit.baseline -r aws_lambda_powertools
36
37
+complexity-baseline:
38
+ $(info Maintenability index)
39
+ poetry run radon mi aws_lambda_powertools
40
+ $(info Cyclomatic complexity index)
41
+ poetry run xenon --max-absolute C --max-modules A --max-average A aws_lambda_powertools
42
+
43
#
44
# Use `poetry version <major>/<minor></patch>` for version bump
45
0 commit comments