What's Changed
Full Changelog: v1.1.1...v1.1.2
This update introduces several improvements to the codebase, focusing on code quality, type safety, and workflow enhancements. The most notable changes include stricter type annotations and error handling in the CAS class, the addition of a type stub file for better static analysis, and updates to the CI workflow to include type checking and improved dependency management.
Code quality and type safety improvements:
- Updated the
CASclass methods (__format__,__eq__, and__lt__) to use more precise type annotations (objectinstead ofCASfor comparison methods), added docstrings for clarity, and improved error handling when comparing objects of different types. - Added a new type stub file
casregnum.pyithat provides explicit type signatures for all public methods and properties of theCASclass, enhancing static type checking and editor support.
Continuous Integration and dependency management:
- Enhanced the GitHub Actions CI workflow by renaming jobs for clarity (
test→code-tests,lint→code-quality), running tests using configuration frompyproject.toml, and adding a step formypytype checking. [1] [2] [3] - Updated development dependencies in
pyproject.tomlto specify minimum versions, addedmypy, and moved test coverage options into the pytest configuration for consistency. [1] [2]
Version update:
- Bumped the package version from
1.1.1to1.1.2to reflect these improvements.