Skip to content

Update v1.1.2

Latest

Choose a tag to compare

@molshape molshape released this 14 Sep 11:33
7ca346e

What's Changed

  • Add mypy to CI pipeline and improve code quality checks -> v1.1.2 by @molshape in #6

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 CAS class methods (__format__, __eq__, and __lt__) to use more precise type annotations (object instead of CAS for comparison methods), added docstrings for clarity, and improved error handling when comparing objects of different types.
  • Added a new type stub file casregnum.pyi that provides explicit type signatures for all public methods and properties of the CAS class, enhancing static type checking and editor support.

Continuous Integration and dependency management:

  • Enhanced the GitHub Actions CI workflow by renaming jobs for clarity (testcode-tests, lintcode-quality), running tests using configuration from pyproject.toml, and adding a step for mypy type checking. [1] [2] [3]
  • Updated development dependencies in pyproject.toml to specify minimum versions, added mypy, and moved test coverage options into the pytest configuration for consistency. [1] [2]

Version update:

  • Bumped the package version from 1.1.1 to 1.1.2 to reflect these improvements.