Open Kludex opened 1 week ago
Latest commit: |
ee6faaa
|
Status: | ✅ Deploy successful! |
Preview URL: | https://35eb6344.logfire-docs.pages.dev |
Branch Preview URL: | https://logfire-api.logfire-docs.pages.dev |
Attention: Patch coverage is 88.19444% with 17 lines in your changes missing coverage. Please review. |
Files | Patch % | Lines |
---|---|---|---|
tests/test_logfire_api.py | 88.11% | 13 Missing and 4 partials :warning: |
:loudspeaker: Thoughts on this report? Let us know!
@alexmojaki do you know why those tests are failing? 🤔 There are different tests failing depending on the Python version...
I don't know why. How new/consistent are they?
This PR creates the
logfire-api
package.We'll have to remove rye - or it needs to work with editable mode, otherwise developers need to remember to remove the
.venv
and runrye sync --no-lock
every time they perform changes.The approach here is simple - the
logfire-api/logfire_api/__init__.py
contains all the runtime logic, and the type hints are generated from themake generate-stubs
command - we have a lot ofpyi
files.There are two tests:
logfire
andlogfire_api
have the same objects in the__init__.py
.__init__.pyi
type compliant.