Commit 0f7f84d
refactor: utils (#44)
* Move utils.py to utils/
* 🔥 Remove `filter_params`
* ♻️ Merge `time_snowflake` and `generate_snowflake`, move `basic_autocomplete` to `utils/public.py`
* ♻️ Merge `time_snowflake` and `generate_snowflake`, move `basic_autocomplete` to `utils/public.py`
* 🔥 Remove `utils.sleep_until`
* chore: Start migration to uv & ruff & hatch (#4)
* 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
* Setup CHANGELOG.md (#6)
* chore: update docs workflows to use 'uv' for dependency management (#33)
* chore: Update localization workflows to use 'uv' for dependency management
* chore: refactor Read the Docs configuration to use uv
* 🔥 Move stuff to private
* :refactor: move parse_time function to private utils and update references
* 📝 update CHANGELOG to reflect utility function changes
* 🎨 Format
* ♻️ move deprecation utilities to private utils and update references
* ♻️ move snowflake_time function to public.py
* ♻️ move oauth_url and Undefined class to public.py; update imports
* 📝 remove deprecated utility functions from documentation
* 📝 remove (re)moved utility functions from documentation
* 📝 add utils.resolve_template to changelog and remove from documentation
* 🐛 fix import path for warn_deprecated utility function
* :refactor: reorganize utility function imports and move evaluate_annotation to private module
* ♻️ update import paths for utility functions to use relative imports
* ♻️ move delay_task function to private
* ♻️ removed `utils.get` in favor of `utils.find`
* ♻️ removed `utils._unique`
It was used twice, and once it wasn't even necessary
* ♻️ move `async_all` to private
* ♻️ move `maybe_coroutine` to private
* ♻️ rename `maybe_coroutine` to `maybe_awaitable`
* ♻️ move `sane_wait_for` to private
* ♻️ move `format_dt` to public
* ♻️ remove `as_chunks` function
* 📝 update `utils.sleep_until` and `utils.parse_time` changelog to suggest alternatives
* ♻️ move `compute_timedelta` function
* ♻️ move `valid_icon_size` to `asset.py`
* ♻️ refactor `utils.get` to `utils.find` across multiple files
* ♻️ refactor markdown and mention handling functions in `__init__.py` and `public.py`
* ♻️ move SnowflakeList to `private.py`
* ♻️ move `find` function from `__init__.py` to `public.py`
* ♻️ move `copy_doc` to private
* ♻️ refactor `get` to `find` in onboarding and sticker modules
* 🐛 fix `copy_doc` decorator usage in context.py
* ♻️ move SequenceProxy to private module
* ♻️ move cached_slot_property to private
* 🚨 add noqa comments to prevent linting errors
* ♻️ move get_slots function to private module
* ♻️ refactor JSON serialization functions to private module
* ♻️ replace custom cached_property implementation with functools.cached_property
* ✏️ fix typo in CHANGELOG-V3.md
* ➖ remove unused dependencies from pyproject.toml and uv.lock
* ⚰️ remove test.py
* ♻️ remove duplicate import of raw_mentions in __init__.py
* 🐛 fix raw_role_mentions import in utils/__init__.py
* 🔥 Duplicate `Iterable` import
* Apply suggestion from @Lumabots
Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Paillat <[email protected]>
* 🔥 Simplify imports
* 🔥 Simplify imports number 2
* 🔥 Simplify imports number 3 omg this is amazing
* 🔥 Simplify imports number 4 omg this is amazing yee
* 🔥 Simplify imports number 5
* Update discord/ext/commands/converter.py
Co-authored-by: Ice Wolfy <[email protected]>
Signed-off-by: Paillat <[email protected]>
* Apply suggestions from code review
Co-authored-by: Ice Wolfy <[email protected]>
Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Paillat <[email protected]>
* Update discord/state.py
Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Paillat <[email protected]>
* Update discord/state.py
Co-authored-by: Lumouille <[email protected]>
Signed-off-by: Paillat <[email protected]>
* ♻️ Remove _ prefix in from and to json
* ♻️ Make import less weird
* Update utils.po
Signed-off-by: Paillat <[email protected]>
* empty commit
* Update discord/poll.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paillat <[email protected]>
* Update discord/utils/private.py
Co-authored-by: Copilot <[email protected]>
Signed-off-by: Paillat <[email protected]>
* 🐛 Fix broken import after merge
* 🐛 Fix emojis.json path
* 🐛 Fix broken imports
* 🎨 Format stuff
* 🐛 Fix import
---------
Signed-off-by: Paillat <[email protected]>
Signed-off-by: Paillat <[email protected]>
Co-authored-by: Lumouille <[email protected]>
Co-authored-by: Ice Wolfy <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent d06725e commit 0f7f84d
File tree
62 files changed
+1607
-1747
lines changed- discord
- commands
- ext
- bridge
- commands
- tasks
- ui
- utils
- webhook
- docs
- api
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
62 files changed
+1607
-1747
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
724 | 725 | | |
725 | 726 | | |
726 | 727 | | |
727 | | - | |
| 728 | + | |
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
| |||
1529 | 1530 | | |
1530 | 1531 | | |
1531 | 1532 | | |
1532 | | - | |
| 1533 | + | |
1533 | 1534 | | |
1534 | 1535 | | |
1535 | 1536 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
229 | | - | |
| 229 | + | |
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
200 | 201 | | |
201 | 202 | | |
202 | 203 | | |
203 | | - | |
| 204 | + | |
204 | 205 | | |
205 | | - | |
| 206 | + | |
206 | 207 | | |
207 | 208 | | |
208 | 209 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
265 | 266 | | |
266 | 267 | | |
267 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
373 | 378 | | |
374 | 379 | | |
375 | 380 | | |
376 | | - | |
| 381 | + | |
377 | 382 | | |
378 | 383 | | |
379 | 384 | | |
| |||
400 | 405 | | |
401 | 406 | | |
402 | 407 | | |
403 | | - | |
| 408 | + | |
404 | 409 | | |
405 | 410 | | |
406 | 411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
559 | 561 | | |
560 | 562 | | |
561 | 563 | | |
562 | | - | |
563 | | - | |
| 564 | + | |
| 565 | + | |
564 | 566 | | |
565 | 567 | | |
566 | 568 | | |
567 | 569 | | |
568 | 570 | | |
569 | 571 | | |
570 | 572 | | |
571 | | - | |
| 573 | + | |
572 | 574 | | |
573 | 575 | | |
574 | 576 | | |
575 | 577 | | |
576 | | - | |
| 578 | + | |
577 | 579 | | |
578 | 580 | | |
579 | 581 | | |
| |||
602 | 604 | | |
603 | 605 | | |
604 | 606 | | |
605 | | - | |
| 607 | + | |
606 | 608 | | |
607 | 609 | | |
608 | 610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
| 67 | + | |
67 | 68 | | |
68 | 69 | | |
69 | 70 | | |
| |||
216 | 217 | | |
217 | 218 | | |
218 | 219 | | |
219 | | - | |
| 220 | + | |
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | 225 | | |
225 | | - | |
| 226 | + | |
226 | 227 | | |
227 | 228 | | |
228 | 229 | | |
| |||
357 | 358 | | |
358 | 359 | | |
359 | 360 | | |
360 | | - | |
| 361 | + | |
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
| |||
516 | 517 | | |
517 | 518 | | |
518 | 519 | | |
519 | | - | |
| 520 | + | |
520 | 521 | | |
521 | 522 | | |
522 | 523 | | |
| |||
605 | 606 | | |
606 | 607 | | |
607 | 608 | | |
608 | | - | |
| 609 | + | |
| 610 | + | |
609 | 611 | | |
610 | | - | |
611 | | - | |
612 | 612 | | |
613 | 613 | | |
614 | 614 | | |
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
| 715 | + | |
| 716 | + | |
716 | 717 | | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | 718 | | |
721 | 719 | | |
722 | 720 | | |
| |||
0 commit comments