11SHELL =/bin/bash
22DATETIME: =$(shell date -u +% Y% m% dT% H% M% SZ)
33
4- help : # preview Makefile commands
4+ help : # Preview Makefile commands
55 @awk ' BEGIN { FS = ":.*#"; print "Usage: make <target>\n\nTargets:" } \
66/^[-_[ :alpha:]]+:.?* # / { printf " %-15s%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
77
8- # # ---- Dependency commands ---- ##
8+ # ######################
9+ # Dependency commands
10+ # ######################
911
10- install : # install Python dependencies
12+ install : # Install Python dependencies
1113 pipenv install --dev
1214 pipenv run pre-commit install
1315
14- update : install # update Python dependencies
16+ update : install # Update Python dependencies
1517 pipenv clean
1618 pipenv update --dev
1719
18- # # ---- Unit test commands ---- ##
20+ # #####################
21+ # Unit test commands
22+ # #####################
1923
20- test : # run tests and print a coverage report
24+ test : # Run tests and print a coverage report
2125 pipenv run coverage run --source=lambdas -m pytest -vv
2226 pipenv run coverage report -m
2327
24- coveralls : test # write coverage data to an LCOV report
28+ coveralls : test # Write coverage data to an LCOV report
2529 pipenv run coverage lcov -o ./coverage/lcov.info
2630
27- # # ---- Code quality and safety commands ---- ##
31+ # ###################################
32+ # Code quality and safety commands
33+ # ###################################
2834
29- lint : black mypy ruff safety # run linters
35+ lint : black mypy ruff safety # Run linters
3036
31- black : # run 'black' linter and print a preview of suggested changes
37+ black : # Run 'black' linter and print a preview of suggested changes
3238 pipenv run black --check --diff .
3339
34- mypy : # run 'mypy' linter
40+ mypy : # Run 'mypy' linter
3541 pipenv run mypy .
3642
37- ruff : # run 'ruff' linter and print a preview of errors
43+ ruff : # Run 'ruff' linter and print a preview of errors
3844 pipenv run ruff check .
3945
40- safety : # check for security vulnerabilities and verify Pipfile.lock is up-to-date
46+ safety : # Check for security vulnerabilities and verify Pipfile.lock is up-to-date
4147 pipenv check
4248 pipenv verify
4349
44- lint-apply : # apply changes with 'black' and resolve 'fixable errors' with 'ruff'
50+ lint-apply : # Apply changes with 'black' and resolve 'fixable errors' with 'ruff'
4551 black-apply ruff-apply
4652
47- black-apply : # apply changes with 'black'
53+ black-apply : # Apply changes with 'black'
4854 pipenv run black .
4955
50- ruff-apply : # resolve 'fixable errors' with 'ruff'
56+ ruff-apply : # Resolve 'fixable errors' with 'ruff'
5157 pipenv run ruff check --fix .
0 commit comments