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

Enable pydocstring and fix all the issues #33

Open
Tracked by #23
dalonsoa opened this issue Nov 4, 2023 · 4 comments
Open
Tracked by #23

Enable pydocstring and fix all the issues #33

dalonsoa opened this issue Nov 4, 2023 · 4 comments
Assignees
Labels
documentation Improvements or additions to documentation hacktoberfest

Comments

@dalonsoa
Copy link
Collaborator

dalonsoa commented Nov 4, 2023

Docstrings are not up to the appropriate standard - to start with, many are just missing. We implement QA in #32 , but we have disabled pydocstyle simply because of the many issues to fix.

It will take a significant amount of time to sort all of those, so it will need to be done bit by bit, enabling linting the docs (see pyproject.toml), see what fails, picking an error code to fix and disabling the others. And so on and so forth until all doc-related codes are enabled.

@dalonsoa dalonsoa added the documentation Improvements or additions to documentation label Nov 4, 2023
@dalonsoa
Copy link
Collaborator Author

@barneydobson , I'm going to leave this one to you. Not urgent but necessary to bring WSIMOD up to the appropriate standards - specially given that the documentation is built out of the docstrings.

Back implementing this is a pain, so let's make sure future code (in this repo or another) follow the standards from the onset - in principle, Google Style Docstrings. Happy to have a chat on this.

@barneydobson
Copy link
Collaborator

@dalonsoa thanks - how do I run the linting to see what needs fixing?

@dalonsoa
Copy link
Collaborator Author

I hope to update the contributing guidelines today precisely explaining how to do that. But all comes down to installing the dev dependencies with pip install -r requirements-dev.txtand then run ruff . (mind the period!).

If you run this, you should get no errors as we are not checking the docstrings. To get the errors, you will need to add "D" to this line:

select = ["E", "F", "I"] # pycodestyle, Pyflakes, isort. Ignoring pydocstyle (D), for now

As usual, used a separate branch to work on this.

Happy to have a chat tomorrow (before 10:30) if you want to go through this together.

@barneydobson
Copy link
Collaborator

great - I will have a play and let you know

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 hacktoberfest
Projects
None yet
Development

No branches or pull requests

2 participants