forked from aws/aws-sam-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 820 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
init:
SAM_CLI_DEV=1 pip install -e '.[dev]'
test:
# Run unit tests
# Fail if coverage falls below 95%
pytest --cov samcli --cov-report term-missing --cov-fail-under 95 tests/unit
integ-test:
# Integration tests don't need code coverage
SAM_CLI_DEV=1 pytest tests/integration
func-test:
# Verify function test coverage only for `samcli.local` package
pytest --cov samcli.local --cov samcli.commands.local --cov-report term-missing tests/functional
flake:
# Make sure code conforms to PEP8 standards
flake8 samcli
flake8 tests/unit tests/integration
lint:
# Linter performs static analysis to catch latent bugs
pylint --rcfile .pylintrc samcli
# Command to run everytime you make changes to verify everything works
dev: flake lint test
# Verifications to run before sending a pull request
pr: init dev