Skip to content

Test coverage - #33

Merged
davebelais merged 1 commit into
mainfrom
test-coverage-2
Aug 2, 2026
Merged

Test coverage#33
davebelais merged 1 commit into
mainfrom
test-coverage-2

Conversation

@davebelais

@davebelais davebelais commented Aug 2, 2026

Copy link
Copy Markdown
Collaborator

This pull request includes a new patch release (2.2.2) for the sob library, focusing on bug fixes, improved test coverage, and some utility enhancements. The most significant changes address subtle bugs in type inference and docstring formatting, add comprehensive tests for the hooks API, and improve error handling in datetime parsing. Additionally, documentation and configuration updates were made.

Bug fixes and core logic improvements:

  • Fixed a bug in src/sob/thesaurus.py where type inference could incorrectly match types due to a variable name error in _update_types, and corrected property merging logic in _update_object_meta. [1] [2]
  • Improved docstring and comment line formatting in src/sob/utilities.py, including correct handling of indentation and line endings, and fixed an off-by-one bug in the indent function. [1] [2] [3] [4] [5] [6]
  • Fixed str2datetime in src/sob/_datetime.py to only strip the UTC offset when no explicit time zone is present, improving standards compliance.
  • Fixed equality comparison in Properties.__eq__ in src/sob/meta.py to properly compare the underlying dictionary.

Testing improvements:

  • Added a new test suite tests/test_hooks.py with comprehensive coverage for the hooks API, including error handling and instance/class-level hooks.
  • Improved tests/test_datetime.py with additional tests for type errors in str2datetime and str2date, and stricter doctest assertions. [1] [2]

Documentation and configuration:

  • Added AGENTS.md with an overview of the project, development commands, layout, style, and CI/release gotchas.
  • Added .claude/skills/fableplan/SKILL.md, documenting an opt-in local skill for toggling Fable Plan Mode in Claude Code.
  • Enabled the official superpowers plugin in .claude/settings.json.
  • Updated version to 2.2.2 in pyproject.toml.
  • Minor import fix in tests/test_io.py.

@davebelais
davebelais merged commit 51b7089 into main Aug 2, 2026
13 checks passed
@davebelais
davebelais deleted the test-coverage-2 branch August 2, 2026 04:47
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.

1 participant