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

Add docstrings linting with 'pydocstyle' using 'flake8' #1483

Merged
merged 14 commits into from
Jan 22, 2021

Conversation

mondeja
Copy link
Collaborator

@mondeja mondeja commented Jan 22, 2021

This pull request add configuration and installation for flake8-docstrings and flake8-rst-docstrings. It ensures that docstring haven't common errors, that docstrings are written for public functions... unifying in general the code base.

I've ignored some rules either because it generated too much work to correct them (D100, D104) or are too much intrusive (D401, for example).

Other minor changes are:

  • Removed empty module positioning.py.
  • Removed unused function PIL_to_npimage.

@mondeja mondeja added refactor Does not affect the end user at all i.e. making code easier to read or PEP8 compliant. tooling Apps, integrations, workflows, tools... relevant to the maintenance of this project/repo. labels Jan 22, 2021
@mondeja mondeja marked this pull request as draft January 22, 2021 19:08
@mondeja mondeja added the documentation Related to documentation in official project docs or individual docstrings. label Jan 22, 2021
@coveralls
Copy link

coveralls commented Jan 22, 2021

Coverage Status

Coverage increased (+0.01%) to 66.843% when pulling 240c7c4 on mondeja:lint-docstrings into 143618c on Zulko:master.

Copy link
Collaborator

@tburrows13 tburrows13 left a comment

Choose a reason for hiding this comment

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

Very nice overall. This should make my job in #1482 easier (after a painful rebase/merge!). The only other thing I'm not sure about is indenting examples. I don't think it is necessary, but I think you've done that here? If I'm wrong, please ignore me!

moviepy/utils.py Outdated Show resolved Hide resolved
moviepy/Clip.py Outdated Show resolved Hide resolved
moviepy/Clip.py Outdated Show resolved Hide resolved
moviepy/video/fx/resize.py Outdated Show resolved Hide resolved
moviepy/video/io/VideoFileClip.py Outdated Show resolved Hide resolved
moviepy/video/io/ffmpeg_tools.py Outdated Show resolved Hide resolved
moviepy/video/tools/credits.py Outdated Show resolved Hide resolved
@mondeja
Copy link
Collaborator Author

mondeja commented Jan 22, 2021

The only other thing I'm not sure about is indenting examples. I don't think it is necessary, but I think you've done that here?

Yes, I've found indented the examples of a function, but is fixed now. Let me know if you see something more wrong.

@mondeja mondeja marked this pull request as ready for review January 22, 2021 20:36
@mondeja mondeja merged commit 736abcc into Zulko:master Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation in official project docs or individual docstrings. refactor Does not affect the end user at all i.e. making code easier to read or PEP8 compliant. tooling Apps, integrations, workflows, tools... relevant to the maintenance of this project/repo.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants