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

Docformatter hooks and docstring standardisation #187

Merged

Conversation

sadielbartholomew
Copy link
Member

Similar to NCAS-CMS/cfunits#22, but only to auto-format to, and set up a pre-commit hook for, docformatter, i.e. without (additionally) the formatting to abide by check pre-commit for pydocstyle compliance to Google-style docstrings.

Adapting the codebase to abide by pydocstyle will be postponed for cf-python because it is a manual process that would have to be done manually (and very likely incrementally), and we want to get started right away on the Dask-migration related work (#182) which requires a separate branch (dask) to keep in sync.

Note: had to use --no-verify option to commit because docformatter
has touched most if not all modules in cf/ and there are F841 and
F821 cases which are yet to be addressed for flake8 error codes.
@sadielbartholomew sadielbartholomew self-assigned this Feb 12, 2021
@sadielbartholomew sadielbartholomew added the documentation Improvements or additions to documentation label Feb 12, 2021
@sadielbartholomew
Copy link
Member Author

sadielbartholomew commented Feb 12, 2021

Cancelling the CI workflows because they will fail for the same reason as #186 (comment). I'll get the cfdm version updated so the CI can run without failing on version constraints.

@sadielbartholomew sadielbartholomew merged commit 677b04a into NCAS-CMS:master Feb 12, 2021
@sadielbartholomew sadielbartholomew deleted the docstring-linting branch February 12, 2021 23:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant