Skip to content

Commit

Permalink
style: Apply a couple refurb suggestions
Browse files Browse the repository at this point in the history
I kept only those improving readability.
  • Loading branch information
DimitriPapadopoulos authored Sep 23, 2023
1 parent 3e64372 commit 816d575
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion yamllint/rules/quoted_strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def VALIDATE(conf):
|[-+]?0[0-7_]+
|[-+]?(?:0|[1-9][0-9_]*)
|[-+]?0x[0-9a-fA-F_]+
|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.X),
|[-+]?[1-9][0-9_]*(?::[0-5]?[0-9])+)$''', re.VERBOSE),
list('-+0123456789'))


Expand Down
2 changes: 1 addition & 1 deletion yamllint/rules/truthy.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

ID = 'truthy'
TYPE = 'token'
CONF = {'allowed-values': list(TRUTHY), 'check-keys': bool}
CONF = {'allowed-values': TRUTHY.copy(), 'check-keys': bool}
DEFAULT = {'allowed-values': ['true', 'false'], 'check-keys': True}


Expand Down

0 comments on commit 816d575

Please sign in to comment.