Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some docstrings #198

Merged
merged 2 commits into from
Jul 17, 2023
Merged

Fix some docstrings #198

merged 2 commits into from
Jul 17, 2023

Conversation

devdanzin
Copy link
Collaborator

Fix some docstrings for correct description, typos, typing information, consistency, etc.

For typing information, the docstring was updated to what is in code, but we could instead fix the code where it makes sense: e.g. when the docstring expects a the name of the Archiver (a str) but an Archiver is passed instead, we could actually pass the name. I'm willing to fix it either way.

@codecov-commenter
Copy link

Codecov Report

Merging #198 (8d5d8d4) into master (2f59f94) will decrease coverage by 0.17%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #198      +/-   ##
==========================================
- Coverage   95.26%   95.10%   -0.17%     
==========================================
  Files          23       23              
  Lines        1226     1226              
  Branches      276      276              
==========================================
- Hits         1168     1166       -2     
- Misses         33       34       +1     
- Partials       25       26       +1     
Impacted Files Coverage Δ
src/wily/__main__.py 95.53% <ø> (ø)
src/wily/cache.py 98.18% <ø> (ø)
src/wily/commands/build.py 86.95% <ø> (-2.18%) ⬇️
src/wily/commands/graph.py 100.00% <ø> (ø)
src/wily/commands/rank.py 96.42% <ø> (ø)
src/wily/commands/report.py 97.08% <ø> (ø)
src/wily/operators/__init__.py 100.00% <ø> (ø)
src/wily/operators/maintainability.py 100.00% <ø> (ø)
src/wily/state.py 95.23% <ø> (ø)
@tonybaloney
Copy link
Owner

This library was written before type annotations were available in all versions of Python, so it makes sense at this stage to remove a lot of the docstring types and annotate the functions correctly then use mypy or pyright to do the validation.

For now, I'll bring this one in, thanks for the update

@tonybaloney tonybaloney merged commit 0863684 into tonybaloney:master Jul 17, 2023
19 checks passed
@devdanzin devdanzin deleted the docstrings branch July 17, 2023 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants