Skip to content

🔧 refactor(word_count): improve code quality and bump version to 0.5.4#93

Merged
sudoskys merged 2 commits intomainfrom
dev
Dec 20, 2025
Merged

🔧 refactor(word_count): improve code quality and bump version to 0.5.4#93
sudoskys merged 2 commits intomainfrom
dev

Conversation

@sudoskys
Copy link
Owner

  • Pre-compile regex pattern as module-level constant for better performance
  • Add docstrings and type hints documentation
  • Add known limitation comment for double backslash edge case (\[)
  • Remove inline test code from library modules (moved to tests/)
  • Remove unused import in interpreters.py
  • Replace assert with proper ValueError for input validation
  • Fix missing newline at end of file

- Pre-compile regex pattern as module-level constant for better performance
- Add docstrings and type hints documentation
- Add known limitation comment for double backslash edge case (\\[)
- Remove inline test code from library modules (moved to tests/)
- Remove unused import in interpreters.py
- Replace assert with proper ValueError for input validation
- Fix missing newline at end of file
…ompatibility

- Convert pytest-style test functions to unittest.TestCase classes
- Add CountMarkdownTest and HardSplitMarkdownTest test classes
- Prefix helper functions with underscore to indicate private use
- Now discoverable by `python -m unittest discover`
@sudoskys sudoskys merged commit 39eccad into main Dec 20, 2025
2 checks passed
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