New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Support for JSONL Writer #630
Add Support for JSONL Writer #630
Conversation
Pull Request Test Coverage Report for Build 3126840750
💛 - Coveralls |
finally: | ||
f.detach() | ||
|
||
|
||
def _writeobj(encoder, obj, f, prefix, suffix): | ||
def _writeobj(encoder, obj, f, prefix, suffix, lines=False): |
Check warning
Code scanning / Pylint (reported by Codacy)
Argument name "f" doesn't conform to snake_case naming style
finally: | ||
f.detach() | ||
|
||
|
||
def _writeobj(encoder, obj, f, prefix, suffix): | ||
def _writeobj(encoder, obj, f, prefix, suffix, lines=False): |
Check warning
Code scanning / Pylint (reported by Codacy)
Too many arguments (6/5)
assert result[2]['bar'] == 2 | ||
|
||
|
||
def test_tojson_2(): |
Check warning
Code scanning / Pylint (reported by Codacy)
Missing function docstring
@@ -49,3 +50,44 @@ | |||
|
|||
ieq(expect, actual) | |||
ieq(expect, actual) # verify can iterate twice | |||
|
|||
|
|||
def test_tojson_1(): |
Check warning
Code scanning / Pylint (reported by Codacy)
Missing function docstring
['Alexa', [['two pair', '4S'], ['two pair', '9S']]], | ||
['May', []], | ||
['Deloise', [['three of a kind', '5S']]]] | ||
f = NamedTemporaryFile(delete=False, mode='r') |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "f" doesn't conform to snake_case naming style
('a', 1), | ||
('b', 2), | ||
('c', 2)) | ||
f = NamedTemporaryFile(delete=False, mode='r') |
Check warning
Code scanning / Pylint (reported by Codacy)
Variable name "f" doesn't conform to snake_case naming style
['Alexa', [['two pair', '4S'], ['two pair', '9S']]], | ||
['May', []], | ||
['Deloise', [['three of a kind', '5S']]]] | ||
f = NamedTemporaryFile(delete=False, mode='r') |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Consider using 'with' for resource-allocating operations
('a', 1), | ||
('b', 2), | ||
('c', 2)) | ||
f = NamedTemporaryFile(delete=False, mode='r') |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Consider using 'with' for resource-allocating operations
assert result[2]['bar'] == 2 | ||
|
||
|
||
def test_tojson_2(): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Missing function or method docstring
['Alexa', [['two pair', '4S'], ['two pair', '9S']]], | ||
['May', []], | ||
['Deloise', [['three of a kind', '5S']]]] | ||
f = NamedTemporaryFile(delete=False, mode='r') |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Variable name "f" doesn't conform to snake_case naming style
('a', 1), | ||
('b', 2), | ||
('c', 2)) | ||
f = NamedTemporaryFile(delete=False, mode='r') |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Variable name "f" doesn't conform to snake_case naming style
@@ -49,3 +50,44 @@ | |||
|
|||
ieq(expect, actual) | |||
ieq(expect, actual) # verify can iterate twice | |||
|
|||
|
|||
def test_tojson_1(): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Missing function or method docstring
finally: | ||
f.detach() | ||
|
||
|
||
def _writeobj(encoder, obj, f, prefix, suffix): | ||
def _writeobj(encoder, obj, f, prefix, suffix, lines=False): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Too many arguments (6/5)
finally: | ||
f.detach() | ||
|
||
|
||
def _writeobj(encoder, obj, f, prefix, suffix): | ||
def _writeobj(encoder, obj, f, prefix, suffix, lines=False): |
Check warning
Code scanning / Pylintpython3 (reported by Codacy)
Argument name "f" doesn't conform to snake_case naming style
Are you waiting for a release with this change? |
@juarezr it's alright, I think the release can wait for a while. However, there is an open issue for over 2 years now that would be resolved with the release. |
This PR has the objective of adding support for writing to JSONL files
Changes
lines
argument is set to trueChecklist
Use this checklist for assuring the quality of pull requests that include new code and or make changes to existing code.
tox
/pytest