docs: Add docstrings to vex_manager/generate.py #4541
Labels
documentation
Documentation changes
good first issue
Good for newcomers
hacktoberfest
good issue for hacktoberfest participation
We haven't been entirely consistent about adding python docstrings to every function, and I figured I'd file some easy to fix issues for hacktoberfest participants who are maybe working on getting their commits in this week.
What is a docstring?
Here's a tutorial on
docstrings in case
you're not sure what they are. Basically I want someone to write a short
sentence explaining what a function does and have it put at the top of the
function in the way that python expects docstrings to look. (You can also do
classes and methods.) Among other things, docstrings can be used by integrated
development environments (IDEs) to give contributors a quick overview of the
function without having to read the code.
This issue
This issue is for updating the file listed in the title of the issue: vex_manager/generate.py
We are using
interrogate
(a tool for checking docstrings) as follows:interrogate -vv -i -I -M -C -n -p vex_manager/generate.py
You can run that locally to see if you're done, but we also recommend using
pre-commit to run pre-checks for you before submitting a pull request.
Instructions here:
https://cve-bin-tool.readthedocs.io/en/latest/CONTRIBUTING.html#using-pre-commit-to-run-linters-automatically
Or in short, go to the main cve-bin-tool directory and run the following:
Short tips for new contributors:
Claiming issues:
The text was updated successfully, but these errors were encountered: