Skip to content

v2.5.0

Compare
Choose a tag to compare
@LevBernstein LevBernstein released this 30 Sep 22:53
· 11 commits to main since this release
  • Bumped Python version to 3.12.0 at a minimum; this drops compatibility with 3.10 and 3.11
  • Implicit typing union: X | Y instead of typing.Union[X, Y]; X | None instead of typing.Optional[X]
  • UpperCamelCase for globally-scoped variables
  • Added 18 unit tests, increasing coverage to 90%
  • Increased docstring coverage from 10% to 14%; still a long ways to go
  • Replaced calls to open(x) with calls to pathlib.Path(x).open()
  • Switched to string interpolation for logging
  • Specified exact warning to ignore for all type: ignore comments
  • Externalized several shared parts of methods from Bot.py to misc.py, reducing copy-pasted code--DRY!
  • Separated !dog from the other animal commands to increase readability