@@ -17,14 +17,20 @@ test-cov-report:
17
17
integ-test :
18
18
pytest --no-cov integration/
19
19
20
- black :
20
+ format :
21
21
black setup.py samtranslator tests integration bin schema_source
22
22
bin/transform-test-error-json-format.py --write tests/translator/output/error_* .json
23
23
bin/json-format.py --write tests integration samtranslator/policy_templates_data
24
24
bin/yaml-format.py --write tests
25
25
bin/yaml-format.py --write integration --add-test-metadata
26
26
27
- black-check :
27
+ black :
28
+ $(warning `make black` is deprecated, please use `make format`)
29
+ # sleep for 5 seconds so the message can be seen.
30
+ sleep 5
31
+ make format
32
+
33
+ format-check :
28
34
# Checking latest schema was generated (run `make schema` if this fails)
29
35
mkdir -p .tmp
30
36
python -m samtranslator.internal.schema_source.schema --sam-schema .tmp/sam.schema.json --cfn-schema schema_source/cloudformation.schema.json --unified-schema .tmp/schema.json
@@ -36,6 +42,12 @@ black-check:
36
42
bin/yaml-format.py --check tests
37
43
bin/yaml-format.py --check integration --add-test-metadata
38
44
45
+ black-check :
46
+ $(warning `make black-check` is deprecated, please use `make format-check`)
47
+ # sleep for 5 seconds so the message can be seen.
48
+ sleep 5
49
+ make format-check
50
+
39
51
lint :
40
52
ruff samtranslator bin schema_source integration tests
41
53
# mypy performs type check
@@ -78,7 +90,7 @@ schema-all: fetch-schema-data update-schema-data schema
78
90
dev : test
79
91
80
92
# Verifications to run before sending a pull request
81
- pr : black -check lint init dev
93
+ pr : format -check lint init dev
82
94
83
95
clean :
84
96
rm -rf .tmp
0 commit comments