forked from aws/aws-lambda-builders
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (27 loc) · 932 Bytes
/
Makefile
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
init:
LAMBDA_BUILDERS_DEV=1 pip install -e '.[dev]'
test:
# Run unit and functional tests
# Fail if coverage falls below 94%
LAMBDA_BUILDERS_DEV=1 pytest -vv --cov aws_lambda_builders --cov-report term-missing --cov-fail-under 94 tests/unit tests/functional
unit-test:
LAMBDA_BUILDERS_DEV=1 pytest tests/unit
func-test:
LAMBDA_BUILDERS_DEV=1 pytest tests/functional
integ-test:
# Integration tests don't need code coverage
LAMBDA_BUILDERS_DEV=1 pytest tests/integration
lint:
# Linter performs static analysis to catch latent bugs
ruff check aws_lambda_builders
lint-fix:
ruff aws_lambda_builders --fix
# Command to run everytime you make changes to verify everything works
dev: lint test
black:
black setup.py aws_lambda_builders/* tests/*
black-check:
black --check setup.py aws_lambda_builders/* tests/*
# Verifications to run before sending a pull request
pr: init dev black-check
format: lint-fix black