Skip to content
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

Guess --intype if not specified #10

Merged
merged 5 commits into from May 17, 2022
Merged

Conversation

Gallaecio
Copy link
Contributor

@Gallaecio Gallaecio commented May 17, 2022

Resolves #7

Includes documentation changes to feature .jsonl as the file extension for JSON Lines files, as per https://jsonlines.org/.

@@ -53,15 +57,32 @@ async def run(queries, out, n_conn, stop_on_errors, api_url,
logger.info(f"\nException types:\n{client.agg_stats.exception_types.most_common()}")


def _guess_intype(file_name, lines):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you please move it to some utils module, and add a few tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you mean “add a few tests” as in “add a few more tests beyond those covering test_guess_intype”? Maybe tests for read_input or for the command-line interface entry point?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, sorry, I missed that! It was either mine or github's glitch :)

@kmike kmike merged commit c64b495 into main May 17, 2022
@kmike
Copy link
Collaborator

kmike commented May 17, 2022

Thanks @Gallaecio!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Autodetect file extension of input file
2 participants