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

Audit all docstrings for style, typos and outdated info #939

Merged
merged 11 commits into from Apr 11, 2021

Conversation

systemcatch
Copy link
Collaborator

@systemcatch systemcatch commented Mar 4, 2021

Pull Request Checklist

Thank you for taking the time to improve Arrow! Before submitting your pull request, please check all appropriate boxes:

  • πŸ§ͺ Added tests for changed code.
  • πŸ› οΈ All tests pass when run locally (run tox or make test to find out!).
  • 🧹 All linting checks pass when run locally (run tox -e lint or make lint to find out!).
  • πŸ“š Updated documentation for changed code.
  • ⏩ Code is up-to-date with the master branch.

If you have any questions about your code changes or any of the points above, please submit your questions along with the pull request and we will try our best to help!

Description of Changes

Closes: #819
Closes: #946

@codecov
Copy link

codecov bot commented Mar 4, 2021

Codecov Report

Merging #939 (996d047) into master (57c67d0) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #939   +/-   ##
=======================================
  Coverage   99.74%   99.74%           
=======================================
  Files          10       10           
  Lines        1944     1944           
  Branches      312      312           
=======================================
  Hits         1939     1939           
  Misses          4        4           
  Partials        1        1           
Impacted Files Coverage Ξ”
arrow/arrow.py 98.99% <ΓΈ> (ΓΈ)
arrow/constants.py 100.00% <ΓΈ> (ΓΈ)
arrow/factory.py 100.00% <ΓΈ> (ΓΈ)
arrow/formatter.py 100.00% <ΓΈ> (ΓΈ)
arrow/locales.py 100.00% <ΓΈ> (ΓΈ)
arrow/parser.py 100.00% <ΓΈ> (ΓΈ)
arrow/util.py 100.00% <ΓΈ> (ΓΈ)

Continue to review full report at Codecov.

Legend - Click here to learn more
Ξ” = absolute <relative> (impact), ΓΈ = not affected, ? = missing data
Powered by Codecov. Last update 57c67d0...996d047. Read the comment docs.

@jadchaar jadchaar requested review from jadchaar and krisfremen and removed request for jadchaar March 4, 2021 19:39
@systemcatch systemcatch marked this pull request as ready for review March 29, 2021 20:32
@jadchaar
Copy link
Member

Is this ready for review @systemcatch?

@systemcatch
Copy link
Collaborator Author

Ready for a first review!

Copy link
Member

@jadchaar jadchaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but a few tweaks.

arrow/arrow.py Outdated Show resolved Hide resolved
arrow/arrow.py Outdated Show resolved Hide resolved
arrow/arrow.py Outdated Show resolved Hide resolved
arrow/constants.py Outdated Show resolved Hide resolved
arrow/formatter.py Outdated Show resolved Hide resolved
arrow/util.py Outdated Show resolved Hide resolved
Copy link
Member

@jadchaar jadchaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small tweaks, but looks great! This is a good first step. Next step (in a new PR) is to probably integrate a docstring style checker to make sure all of them are consistent, but this is a great start :D!

arrow/arrow.py Outdated
datetime.datetime(2013, 5, 5, 0, 0, tzinfo=tzutc())
>>> arrow.Arrow.fromdatetime(dt, dt.tzinfo or 'US/Pacific')
<Arrow [2013-05-05T00:00:00+00:00]>
datetime.datetime(2021, 4, 7, 13, 48)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we make this an tz-aware datetime? Works both ways, just wanted to ask.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do!

@@ -1,3 +1,5 @@
"""Provides internationalization for arrow in over 60 languages and dialects."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love the addition of the number of locales πŸ™Œ!

arrow/util.py Outdated
Comment on lines 1 to 4
"""
Helpful functions used internally within arrow.

"""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Single line

Copy link
Member

@krisfremen krisfremen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

I had a few comments in a draft review, seems like @jadchaar covered all of them, looks good to me.

@systemcatch systemcatch merged commit f18be7f into arrow-py:master Apr 11, 2021
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.

Docstring for Arrow.timestamp still shows the old syntax Audit and improve docstrings
3 participants