forked from aws/serverless-application-model
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·44 lines (31 loc) · 1.08 KB
/
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
39
40
41
42
43
44
target:
$(info ${HELP_MESSAGE})
@exit 0
init:
pip install -e '.[dev]'
test:
pytest --cov samtranslator --cov-report term-missing --cov-fail-under 95 -n auto tests/*
test-cov-report:
pytest --cov samtranslator --cov-report term-missing --cov-report html --cov-fail-under 95 tests/*
integ-test:
pytest --no-cov integration/*
black:
black setup.py samtranslator/* tests/* integration/* bin/*.py
black-check:
black --check setup.py samtranslator/* tests/* integration/* bin/*.py
lint:
# Linter performs static analysis to catch latent bugs
pylint --rcfile .pylintrc samtranslator
# Command to run everytime you make changes to verify everything works
dev: test
# Verifications to run before sending a pull request
pr: black-check lint init dev
define HELP_MESSAGE
Usage: $ make [TARGETS]
TARGETS
init Initialize and install the requirements and dev-requirements for this project.
test Run the Unit tests.
integ-test Run the Integration tests.
dev Run all development tests after a change.
pr Perform all checks before submitting a Pull Request.
endef