Skip to content

Conversation

@desilinguist
Copy link
Collaborator

@desilinguist desilinguist commented Jun 9, 2023

  • Convert all custom types in skll.types to TypeAlias objects.
  • Add typing_extensions to requirements.txt since TypeAlias in only in Python 3.10+.
  • Clean up doc/conf.py.
  • Add skll.types to the API documentation section by creating a new file api/types.rst.
  • Add intersphinx mappings for python, numpy, scikit-learn, and pandas.
  • Fix docstrings in skll.config module to match scikit-learn style, add type hints to the docstrings, and link type hints to SKLL-internal documentation or to the appropriate external documentation.
  • Update doc/requirements.txt to use newer versions of sphinx and sphinx_rtd_theme.

Here's the corresponding documentation built from this branch: https://skll.readthedocs.io/en/647-improve-docstrings-typehints-1/

This is the first PR under #647.

- Clean out commented bits.
- Add intersphinx mappings for python, numpy, scikit-learn, and pandas.
- Enable type hints to be shown in docstrings.
- Convert all custom types to `TypeAlias` objects.
- Sort alphabetically.
- Link all custom types in docstrings to their definitions.
- Add type hints where missing.
- Add `typing_extensions` explicitly.
- Update scikit-learn version in doc requirements.
@codecov
Copy link

codecov bot commented Jun 9, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (0a4381a) 95.21% compared to head (9ef3f53) 95.21%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #737   +/-   ##
=======================================
  Coverage   95.21%   95.21%           
=======================================
  Files          29       29           
  Lines        3531     3532    +1     
=======================================
+ Hits         3362     3363    +1     
  Misses        169      169           
Impacted Files Coverage Δ
skll/config/__init__.py 94.75% <ø> (ø)
skll/config/utils.py 96.15% <ø> (ø)
skll/types.py 92.59% <100.00%> (+0.28%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@desilinguist desilinguist merged commit 7709aa4 into main Jun 9, 2023
@delete-merged-branch delete-merged-branch bot deleted the 647-improve-docstrings-typehints-1 branch June 9, 2023 17:37
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.

4 participants