Skip to content

Conversation

@bdeeney
Copy link
Contributor

@bdeeney bdeeney commented Feb 23, 2017

Fixes #1

@codecov-io
Copy link

codecov-io commented Feb 23, 2017

Codecov Report

Merging #3 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@ Coverage Diff @@ ## master #3 +/- ## ========================================== + Coverage 98.42% 98.47% +0.04%  ========================================== Files 8 8 Lines 381 393 +12 ========================================== + Hits 375 387 +12  Misses 6 6
Impacted Files Coverage Δ
tests/test_bug_fixes.py 100% <100%> (ø)
pyexcel_xlsxw/xlsx.py 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e4146b5...a002583. Read the comment docs.

_date_format: 'dd/mm/yy',
'constant_memory': True
}
options = keywords.get('options', {})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest to remove 'options' keyword, but instead using keyword as options itself. Your implementation is alright but just because I have used keywords as direct options in other plugins, it will be good to keep the consistency.

# for backward compatibility, let the top-level kwarg take precedence
options[_date_format] = keywords.get(
_date_format,
options[_date_format])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And then put in default options, pass it on

self._native_book = xlsxwriter.Workbook(
file_name, keywords # <--
)

@bdeeney
Copy link
Contributor Author

bdeeney commented Feb 23, 2017

Thanks for the quick review and feedback! I've implemented your suggested changes in #4.

@bdeeney bdeeney closed this Feb 23, 2017
@bdeeney bdeeney deleted the workbook-options branch February 23, 2017 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants