This merge request addresses #52 by updating the source code and tooling to support linting and type annotation checking in CI.
Many files are touched to satisfy the Mypy type annotations checker but no major functionality should be changed.
Some minor API changes were made such as removing need to supply the event loop parameter to classes. This behaviour has not been encouraged for some time.
Version was bumped 21.8.0 due to these minor API changes.
Source code modified to:
Support running run type annotations checks cleanly
Add a new module mypy_types.py that holds commonly used formatter type annotations
Support running linting checks cleanly
Update Actions CI workflow to:
Add type annotations checks to CI
Add linting checks to CI
Update developer docs to mention use of GitHub Actions, linting and type checking.
Fix coverage output to report the same file path irrespective of whether package is installed normally or with a developer -e install.
Update CI pip installation to use --use-feature=in-tree-build to avoid pip deprecation warning
This merge request addresses #52 by updating the source code and tooling to support linting and type annotation checking in CI.
Many files are touched to satisfy the Mypy type annotations checker but no major functionality should be changed.
Some minor API changes were made such as removing need to supply the event loop parameter to classes. This behaviour has not been encouraged for some time.
Version was bumped 21.8.0 due to these minor API changes.
Source code modified to:
mypy_types.py
that holds commonly used formatter type annotationsUpdate Actions CI workflow to:
Update developer docs to mention use of GitHub Actions, linting and type checking.
Fix coverage output to report the same file path irrespective of whether package is installed normally or with a developer
-e
install.Update CI pip installation to use
--use-feature=in-tree-build
to avoid pip deprecation warningA few minor updates to support Python 3.10.
Consistent use of f-strings.