-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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 #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
- Loading branch information
Showing
60 changed files
with
3,188 additions
and
1,044 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
asttokens==2.4.1 ; python_version >= "3.10" and python_version < "4.0" | ||
click==8.1.7 ; python_version >= "3.8" and python_version < "4" | ||
colorama==0.4.6 ; python_version >= "3.8" and sys_platform == "win32" and python_version < "4.0" or python_version >= "3.8" and python_version < "4" and platform_system == "Windows" | ||
contourpy==1.1.1 ; python_version >= "3.8" and python_version < "4.0" | ||
coverage-badge==1.1.1 ; python_version >= "3.8" and python_version < "4.0" | ||
coverage==7.5.3 ; python_version >= "3.8" and python_version < "4.0" | ||
coverage[toml]==7.5.3 ; python_version >= "3.8" and python_version < "4.0" | ||
cycler==0.12.1 ; python_version >= "3.8" and python_version < "4.0" | ||
decorator==5.1.1 ; python_version >= "3.10" and python_version < "4.0" | ||
exceptiongroup==1.2.1 ; python_version >= "3.8" and python_version < "3.11" | ||
executing==2.0.1 ; python_version >= "3.10" and python_version < "4.0" | ||
fonttools==4.53.0 ; python_version >= "3.8" and python_version < "4.0" | ||
importlib-metadata==7.2.0 ; python_version >= "3.8" and python_version < "3.10" | ||
importlib-resources==6.4.0 ; python_version >= "3.8" and python_version < "3.10" | ||
iniconfig==2.0.0 ; python_version >= "3.8" and python_version < "4.0" | ||
ipython==8.25.0 ; python_version >= "3.10" and python_version < "4.0" | ||
jaxtyping==0.2.19 ; python_version >= "3.8" and python_version < "4.0" | ||
jedi==0.19.1 ; python_version >= "3.10" and python_version < "4.0" | ||
kiwisolver==1.4.5 ; python_version >= "3.8" and python_version < "4.0" | ||
libcst==1.1.0 ; python_version >= "3.8" and python_version < "4" | ||
markdown-it-py==3.0.0 ; python_version >= "3.8" and python_version < "4" | ||
matplotlib-inline==0.1.7 ; python_version >= "3.10" and python_version < "4.0" | ||
matplotlib==3.7.5 ; python_version >= "3.8" and python_version < "4.0" | ||
mdurl==0.1.2 ; python_version >= "3.8" and python_version < "4" | ||
mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "4.0" | ||
mypy==1.10.0 ; python_version >= "3.8" and python_version < "4.0" | ||
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.9" | ||
numpy==1.26.4 ; python_version >= "3.9" and python_version < "4.0" | ||
packaging==24.1 ; python_version >= "3.8" and python_version < "4.0" | ||
parso==0.8.4 ; python_version >= "3.10" and python_version < "4.0" | ||
pathspec==0.12.1 ; python_version >= "3.8" and python_version < "4" | ||
pexpect==4.9.0 ; python_version >= "3.10" and python_version < "4.0" and (sys_platform != "win32" and sys_platform != "emscripten") | ||
pillow==10.3.0 ; python_version >= "3.8" and python_version < "4.0" | ||
plotly==5.22.0 ; python_version >= "3.8" and python_version < "4.0" | ||
pluggy==1.5.0 ; python_version >= "3.8" and python_version < "4.0" | ||
prompt-toolkit==3.0.47 ; python_version >= "3.10" and python_version < "4.0" | ||
ptyprocess==0.7.0 ; python_version >= "3.10" and python_version < "4.0" and (sys_platform != "win32" and sys_platform != "emscripten") | ||
pure-eval==0.2.2 ; python_version >= "3.10" and python_version < "4.0" | ||
pycln==2.4.0 ; python_version >= "3.8" and python_version < "4" | ||
pygments==2.18.0 ; python_version >= "3.8" and python_version < "4.0" | ||
pyparsing==3.1.2 ; python_version >= "3.8" and python_version < "4.0" | ||
pytest-cov==4.1.0 ; python_version >= "3.8" and python_version < "4.0" | ||
pytest==8.2.2 ; python_version >= "3.8" and python_version < "4.0" | ||
python-dateutil==2.9.0.post0 ; python_version >= "3.8" and python_version < "4.0" | ||
pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "4" | ||
rich==13.7.1 ; python_version >= "3.8" and python_version < "4" | ||
ruff==0.4.10 ; python_version >= "3.8" and python_version < "4.0" | ||
shellingham==1.5.4 ; python_version >= "3.8" and python_version < "4" | ||
six==1.16.0 ; python_version >= "3.8" and python_version < "4.0" | ||
stack-data==0.6.3 ; python_version >= "3.10" and python_version < "4.0" | ||
tenacity==8.4.1 ; python_version >= "3.8" and python_version < "4.0" | ||
tomli==2.0.1 ; python_version >= "3.8" and python_full_version <= "3.11.0a6" | ||
tomlkit==0.12.5 ; python_version >= "3.8" and python_version < "4" | ||
traitlets==5.14.3 ; python_version >= "3.10" and python_version < "4.0" | ||
typeguard==4.3.0 ; python_version >= "3.8" and python_version < "4.0" | ||
typer==0.12.3 ; python_version >= "3.8" and python_version < "4" | ||
typing-extensions==4.12.2 ; python_version >= "3.8" and python_version < "4.0" | ||
typing-inspect==0.9.0 ; python_version >= "3.8" and python_version < "4" | ||
wcwidth==0.2.13 ; python_version >= "3.10" and python_version < "4.0" | ||
zipp==3.19.2 ; python_version >= "3.8" and python_version < "3.10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
click==8.1.7 ; python_version >= "3.8" and python_version < "4" | ||
colorama==0.4.6 ; python_version >= "3.8" and python_version < "4" and platform_system == "Windows" | ||
libcst==1.1.0 ; python_version >= "3.8" and python_version < "4" | ||
markdown-it-py==3.0.0 ; python_version >= "3.8" and python_version < "4" | ||
mdurl==0.1.2 ; python_version >= "3.8" and python_version < "4" | ||
mypy-extensions==1.0.0 ; python_version >= "3.8" and python_version < "4" | ||
pathspec==0.12.1 ; python_version >= "3.8" and python_version < "4" | ||
pycln==2.4.0 ; python_version >= "3.8" and python_version < "4" | ||
pygments==2.18.0 ; python_version >= "3.8" and python_version < "4" | ||
pyyaml==6.0.1 ; python_version >= "3.8" and python_version < "4" | ||
rich==13.7.1 ; python_version >= "3.8" and python_version < "4" | ||
ruff==0.4.10 ; python_version >= "3.8" and python_version < "4.0" | ||
shellingham==1.5.4 ; python_version >= "3.8" and python_version < "4" | ||
tomlkit==0.12.5 ; python_version >= "3.8" and python_version < "4" | ||
typer==0.12.3 ; python_version >= "3.8" and python_version < "4" | ||
typing-extensions==4.12.2 ; python_version >= "3.8" and python_version < "4" | ||
typing-inspect==0.9.0 ; python_version >= "3.8" and python_version < "4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.