Closed joanise closed 5 days ago
CLI load time: 0:00.05
Pull Request HEAD: f0cf073d8e6b3a953577eedb381a9bb13290b312
Imports that take more than 0.1 s:
import time: self [us] | cumulative | imported package
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.22%. Comparing base (
e6a1280
) to head (f0cf073
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
@roedoejet @dhdaines This PR is ready to (re)review, with the --file
option we agreed on yesterday for g2p convert
reading from a file.
Includes documentation, and an unrelated change to CI I did months ago but that got lost in a PR that never got merged.
Plus making test_update_schema()
quiet except when there are errors, and making those errors more helpful when the are some.
PR Goal?
misc small improvements:
-
and/dev/stdin
as stdin (the latter on Linux only)Feedback sought?
standard code review - use SemanticDiff to make it easier to read, though: https://app.semanticdiff.com/gh/roedoejet/g2p/pull/385
Priority?
low
Tests added?
yup
How to test?
g2p convert my_file.txt fra fra-ipa
should continue to work as expected, processing the contents ofmy_file.txt
echo blah blah | g2p convert - fra fra-ipa
should now work (real use case: replace echo by a meaningful process)g2p convert <(echo blah blah) fra fra-ipa
now also worksThe last two cases came up as I was preparing and processing files for EveryVoice, where I wanted to cut a column out of a psv file and pass it to g2p without having the same temporary files on disk. That's what triggered this patch in the first place.
Confidence?
high
Version change?
Possibly a minor since we're adding a feature, but really I think of this as just a patch: this is how it should have worked in the first place.
We've done a bunch of changes since 2.0.0, though, so we're probably due for releasing 2.1.0, especially for api/v2.