Skip to content
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

0.6.0 dev #52

Merged
merged 158 commits into from
Jun 21, 2024
Merged

0.6.0 dev #52

merged 158 commits into from
Jun 21, 2024

Conversation

mivanit
Copy link
Owner

@mivanit mivanit commented Jun 17, 2024

  • add support and CI checks for python >=3.8 (Previously only 3.10, 3.11 were supported)
    • this mostly consisted of messing with a lot of type annotations and adding from __future__ import annotations in a number of places
  • added validate_type function
    • make SerializableDatclass actually do type validation
  • improvements to SerializableDataclass and related functions
    • much better docs and comments
    • move SerializableField and serializable_field to their own file
    • resolve clearer alternative to loading_fn #40 by adding deserialize_fn to SerializableField
    • moved array_safe_eq and dc_eq to muutils.json_serialize.util
    • added array_b64_meta mode to muutils.json_serialize.array, works pretty much the same as existing array_hex_meta but should take less space
  • added ErrorMode enum
    • special .process() method which takes a message (and optionally classes for warnings and errors, and an except_from parameter) and decides whether to throw warning, exception, or do nothing
    • switched error mode handling to this across the package
  • switch to ruff for formatting and linting
  • add cli interface to muutils.sys_info
  • added sanitize_name function with sanitize_fname and sanitize_identifier as special cases
    • see muutils.misc
  • big changes and improvements to CI/makefile
    • uv now used to install deps in CI, separate job for checking poetry.lock consistency
    • makefile recipes reworked, and major changes to internals. make help for more info
    • added many comments to the makefile
  • many other small fixes and changes, including a large number of new tests

@mivanit mivanit changed the title attempting to add support for python >=3.8 0.6.0 dev Jun 21, 2024
@mivanit mivanit merged commit 0e46cf1 into main Jun 21, 2024
8 checks passed
@mivanit mivanit deleted the add-py38-compat branch June 21, 2024 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

clearer alternative to loading_fn
1 participant