We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
You can do:
pip install pydocstyle and then run this script while in the pyt directory
pip install pydocstyle
pyt
import os import re import subprocess import sys os.chdir(os.path.join('pyt')) try: docstyle = subprocess.run(["pydocstyle", "--ignore=D105,D203,D212,D213"], stderr=subprocess.PIPE, universal_newlines=True) except FileNotFoundError: print('Error: Install pydocstyle with pip for python 3.' ' Something like: "sudo python -m pip install pydocstyle"') sys.exit() lines = re.split('\n', docstyle.stderr) errors = zip(lines[0::2], lines[1::2]) errors = [x + "\n\t" + y for x, y in errors] errors = [error for error in errors if 'visit_' not in error] for error in errors: print(error + '\n') print("Total errors: {}".format(len(errors)))
It'll spit out which functions don't have docstrings or complain about something non-PEP 257 compliant.
This is a great way to learn the codebase, and everyone will love you for it.
The imports code for example does not have docstrings, for example.
For an example of great docstrings, see the user-defined function calls code.
Afterwards, we can maybe add it as a pre-commit hook.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
You can do:
pip install pydocstyle
and then run this script while in the
pyt
directoryIt'll spit out which functions don't have docstrings or complain about something non-PEP 257 compliant.
This is a great way to learn the codebase, and everyone will love you for it.
The imports code for example does not have docstrings, for example.
For an example of great docstrings, see the user-defined function calls code.
Afterwards, we can maybe add it as a pre-commit hook.
The text was updated successfully, but these errors were encountered: