-
Notifications
You must be signed in to change notification settings - Fork 0
refactor: utils #44
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
base: master
Are you sure you want to change the base?
refactor: utils #44
Conversation
…omplete` to `utils/public.py`
…omplete` to `utils/public.py`
* Start migration to uv * Setup ruff and hatch * Change pre-commit to use ruff * Format with ruff * Fix mistake * Add dev deps * Change workflows to use uv and ruff * ➕ Add colorlog and remove requirements folder and fix build * 💚 Fix sphinx build ? * 🐛 Add __version.py for version management and update import in __init__.py * ✏️ Update lib-checks.yml to run ruff on ubuntu-latest * 🐛 Update lib-checks.yml to run mypy with uv * 🔥 Delete MANIFEST.in * ✨ Enhance lib-checks.yml to include ruff formatter check * ♻️ Refactor pyproject.toml and uv.lock to use optional-dependencies for voice and speed
* chore: Update localization workflows to use 'uv' for dependency management * chore: refactor Read the Docs configuration to use uv
…tation to private module
It was used twice, and once it wasn't even necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
most of them are typing mistakes/missings, just make sure for the iterable and the template import
I am going to close some of these comments although pertinent because this PR aims at moving code and not changing its typing. |
both could be done at the same time ig, but else when this get merged i'll make a pr fixing the typing mistake |
@Lumabots I am going to take all of your propositions here and make them in another or once this one is merger, just feel like this is a lot already |
Co-authored-by: Lumouille <[email protected]> Signed-off-by: Paillat <[email protected]>
Co-authored-by: Ice Wolfy <[email protected]> Signed-off-by: Paillat <[email protected]>
Co-authored-by: Ice Wolfy <[email protected]> Co-authored-by: Lumouille <[email protected]> Signed-off-by: Paillat <[email protected]>
Co-authored-by: Lumouille <[email protected]> Signed-off-by: Paillat <[email protected]>
Co-authored-by: Lumouille <[email protected]> Signed-off-by: Paillat <[email protected]>
Signed-off-by: Paillat <[email protected]>
The general goal of these changes is to lower the amount of code we have to maintain across te library.
Changes include:
Separated utils function in:
utils.private
for private utils that are to be used in the library codeutils
for user facing utilsRemoved over specific utils
Removed overly specific public utils that wouldn't commonly be used by users and aren't hard to re implement in any project. See
CHANGELOG-V3.md
for a comprehensive list.Removed unused (or lesser used) utils
Remove utils that were used less than once or twice in the library in favor of:
Merged overlapping utils
Merge utils with common goals or with same goal with one another, e.g. see changes to
utils.time_snowflake
->utils.generate_snowflake