skilleter-thingy 0.1.22__py3-none-any.whl → 0.1.24__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of skilleter-thingy might be problematic. Click here for more details.

@@ -27,14 +27,16 @@ def main():
27
27
 
28
28
  args = parser.parse_args()
29
29
 
30
+ tag = args.tag[0]
31
+
30
32
  # Delete the tag if it currently exists, optionally pushing the deletion
31
33
 
32
- if args.tag in git.tags():
33
- git.tag_delete(args.tag, push=args.push)
34
+ if tag in git.tags():
35
+ git.tag_delete(tag, push=args.push)
34
36
 
35
37
  # Apply the tag
36
38
 
37
- git.tag_apply(args.tag, push=args.push)
39
+ git.tag_apply(tag, push=args.push)
38
40
 
39
41
  ################################################################################
40
42
 
@@ -10,7 +10,6 @@
10
10
 
11
11
  # TODO: Not sure it works properly as a pipe
12
12
  # TODO: Error handling in file I/O
13
- # TODO: Ability to remove Terraform 'will be read during apply' blocks (remove from '^ <= .* \{' to ^ \}$')
14
13
 
15
14
  ################################################################################
16
15
 
@@ -39,7 +38,7 @@ TF_UNCHANGED_HIDDEN = re.compile(r' +# \(\d+ unchanged (?:attribute|block|elemen
39
38
  TF_HAS_CHANGED = re.compile(r' # .* has changed')
40
39
  TF_HAS_CHANGED_END = re.compile(r' [}]')
41
40
 
42
- TF_READ_DURING_APPLY = re.compile(r' +# [-a-z_.0-9\[\]]+ will be read during apply')
41
+ TF_READ_DURING_APPLY = re.compile(r' +# +[-a-z _.0-9\[\]\"]+ will be read during apply')
43
42
  TF_READ_DURING_APPLY_END = re.compile(r' [}]')
44
43
 
45
44
  TF_TAG_CHANGE_BLOCK_START = re.compile(r'^ +~ +tags(_all)? += +\{$')