@@ -10,49 +10,55 @@ help: # preview Makefile commands
10
10
@awk ' BEGIN { FS = ":.*#"; print "Usage: make <target>\n\nTargets:" } \
11
11
/^[-_[ :alpha:]]+:.?* # / { printf " %-15s%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
12
12
13
- # # Dependency commands
13
+ # ######################
14
+ # Dependency commands
15
+ # ######################
14
16
15
- install : # install Python dependencies and pre-commit hook
17
+ install : # Install Python dependencies
16
18
pipenv install --dev
17
19
pipenv run pre-commit install
18
20
19
- update : install # update Python dependencies
21
+ update : install # Update Python dependencies
20
22
pipenv clean
21
23
pipenv update --dev
22
24
23
- # # Unit Test commands
25
+ # #####################
26
+ # Unit test commands
27
+ # #####################
24
28
25
- test : # run tests and print a coverage report
29
+ test : # Run tests and print a coverage report
26
30
pipenv run coverage run --source=tim -m pytest -vv
27
31
pipenv run coverage report -m
28
32
29
- coveralls : test # write coverage data to an LCOV report
33
+ coveralls : test # Write coverage data to an LCOV report
30
34
pipenv run coverage lcov -o ./coverage/lcov.info
31
35
32
- # # Code quality and safety commands
36
+ # ###################################
37
+ # Code quality and safety commands
38
+ # ###################################
33
39
34
- lint : black mypy ruff safety # run linters
40
+ lint : black mypy ruff safety # Run linters
35
41
36
- black : # run 'black' linter and print a preview of suggested changes
42
+ black : # Run 'black' linter and print a preview of suggested changes
37
43
pipenv run black --check --diff .
38
44
39
- mypy : # run 'mypy' linter
40
- pipenv run mypy tim
45
+ mypy : # Run 'mypy' linter
46
+ pipenv run mypy .
41
47
42
- ruff : # run 'ruff' linter and print a preview of errors
48
+ ruff : # Run 'ruff' linter and print a preview of errors
43
49
pipenv run ruff check .
44
50
45
- safety : # check for security vulnerabilities and verify Pipfile.lock is up-to-date
51
+ safety : # Check for security vulnerabilities and verify Pipfile.lock is up-to-date
46
52
pipenv check
47
53
pipenv verify
48
54
49
- lint-apply : # apply changes with 'black' and resolve fixable errors with 'ruff'
50
- black-apply ruff-apply
55
+ lint-apply : # Apply changes with 'black' and resolve ' fixable errors' with 'ruff'
56
+ black-apply ruff-apply
51
57
52
- black-apply : # apply changes with 'black'
58
+ black-apply : # Apply changes with 'black'
53
59
pipenv run black .
54
60
55
- ruff-apply : # resolve fixable errors with 'ruff'
61
+ ruff-apply : # Resolve ' fixable errors' with 'ruff'
56
62
pipenv run ruff check --fix .
57
63
58
64
# # Terraform-generated commands for container build and deployment in dev
0 commit comments