File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -32,24 +32,25 @@ def main():
32
32
33
33
exp_feat_name = args .name
34
34
35
- out_yml_name = "exp-%s .yml" % exp_feat_name
36
- out_rst_name = "EXP-%s.rst" % exp_feat_name .upper ()
35
+ out_yml_name = f "exp-{ exp_feat_name } .yml"
36
+ out_rst_name = f "EXP-{ exp_feat_name .upper ()} .rst"
37
37
38
- yaml_template_path = "./scripts/templates/%s" % " exp_feat.yml.mako"
39
- rst_template_path = "./scripts/templates/%s" % " exp_feat.rst.mako"
40
- out_yml_path = "./scripts/core/%s" % out_yml_name
41
- out_rst_path = "./scripts/core/%s" % out_rst_name
38
+ yaml_template_path = "./scripts/templates/exp_feat.yml.mako"
39
+ rst_template_path = "./scripts/templates/exp_feat.rst.mako"
40
+ out_yml_path = f "./scripts/core/{ out_yml_name } "
41
+ out_rst_path = f "./scripts/core/{ out_rst_name } "
42
42
43
43
makoWrite (yaml_template_path , out_yml_path , name = exp_feat_name )
44
44
makoWrite (rst_template_path , out_rst_path , name = exp_feat_name )
45
45
46
46
47
- print ("Successfully generated the template files needed for %s." % exp_feat_name )
48
- print ("""
47
+ print (f"""\
48
+ Successfully generated the template files needed for { exp_feat_name } .
49
+
49
50
You can now implement your feature in the following files:
50
- * %s
51
- * %s
52
- """ % ( out_yml_name , out_rst_name ) )
51
+ * { out_yml_name }
52
+ * { out_rst_name }
53
+ """ )
53
54
54
55
55
56
if __name__ == "__main__" :
You can’t perform that action at this time.
0 commit comments