Closed joanise closed 1 week ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 93.19%. Comparing base (
077afc2
) to head (a13d0f2
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
CLI load time: 0:00.05
PR head a13d0f215c5b8b4c4807b6cd8c562a7bc5612453
Imports that take more than 0.1 s:
import time: self [us] | cumulative | imported package
Two related fixed enabling running
app.py
from directories other than the root:Use g2p.file to locate g2p/static and g2p/templates, don't rely on finding them under the current working directory.
This allows us to run
uvicorn g2p.app:APP --reload --port 5000
and the gunicorn production variant from anywhere, not just the g2p sandbox root.This also allows us to run
cd g2p; tests/run.py
orcd g2p/tests; ./run.py
, or./test_api_resources.py
, etc.Running app.py from g2p/g2p, libraries load g2p.types instead of standard types and thus app.py was broken.