Skip to content

Commit

Permalink
Merge pull request #9 from Paramount/master
Browse files Browse the repository at this point in the history
dont fix sexadecimal numbers in CommentedMaps
  • Loading branch information
lindt authored Jul 27, 2019
2 parents 2f02ca8 + d9b61fb commit a773745
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: python
python:
- "3.3"
- "3.4"
- "3.5"
# TODO: pylint ruamel.yaml doesn't work on travis with this version - "3.5"
# TODO: pylint ruamel.yaml doesn't work on travis with this version - "3.5-dev"
before_install:
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ end
desc 'Checks style'
task audit: :rubocop
task :audit do
ignores = %w(D100 D101 D102 D103 D104 E501 I201 N806)
ignores = %w(D100 D101 D102 D103 D104 E501 I201 N806 W605)

FILES = FileList[%w(bin/compose_format compose_format/*.py setup.py)]
sh "flake8 --ignore='#{ignores * ','}' #{FILES}"
Expand Down
3 changes: 2 additions & 1 deletion compose_format/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ def reorder(data, strict=True):
return data
if type(data) is CommentedSeq:
for i, value in enumerate(data):
data[i] = ComposeFormat.fix_sexadecimal_numbers(value)
if type(value) is not CommentedMap:
data[i] = ComposeFormat.fix_sexadecimal_numbers(value)
data.sort()
return data
return data
Expand Down

0 comments on commit a773745

Please sign in to comment.