You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
"""Description of the script."""defmain():
# All of the script code.if__name__=="__main__":
main()
It seems redundant to explain the script again inside the main function.
pydocstyle raises this error:
path/to/script.py:4 in public function `main`:
D103: Missing docstring in public function
I don't want to ignore D103 because it's useful for functions in other modules.
I see that you have a --match option for selecting files that match a regular expression. Perhaps a feature could be added to ignore function names that match a regular expression?
Thanks.
The text was updated successfully, but these errors were encountered:
Ok thanks, that works as well. Do you think it would be useful though to add a command line option for excluding a function based on a regular expression? Something like --match-function.
Hello,
I have several Python scripts with this format:
It seems redundant to explain the script again inside the
main
function.pydocstyle
raises this error:I don't want to ignore
D103
because it's useful for functions in other modules.I see that you have a
--match
option for selecting files that match a regular expression. Perhaps a feature could be added to ignore function names that match a regular expression?Thanks.
The text was updated successfully, but these errors were encountered: