Skip to content

Commit

Permalink
Update documentation on --ignore-underscore-args option
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh9 committed Feb 16, 2025
1 parent b05a41a commit 299a57c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/config_options.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ return annotation in the function signature are consistent.
If True, underscore arguments (such as \_, \_\_, ...) in the function signature
do not need to appear in the docstring.

Note: "underscore arguments" are not the same as "arguments with leading
underscores" (such as `_a`).

## 14. `--check-class-attributes` (shortform: `-cca`, default: `True`)

If True, check the class attributes (defined under the class definition)
Expand Down
4 changes: 3 additions & 1 deletion pydoclint/flake8_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ def add_options(cls, parser: Any) -> None: # noqa: D102
parse_from_config=True,
help=(
'If True, underscore arguments (such as _, __, ...) in the function'
' signature do not need to appear in the docstring.'
' signature do not need to appear in the docstring. Note: "underscore'
' arguments" are not the same as "arguments with leading'
' underscores" (such as `_a`).'
),
)
parser.add_option(
Expand Down
4 changes: 3 additions & 1 deletion pydoclint/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def validateStyleValue(
default=True,
help=(
'If True, underscore arguments (such as _, __, ...) in the function'
' signature do not need to appear in the docstring.'
' signature do not need to appear in the docstring. Note: "underscore'
' arguments" are not the same as "arguments with leading'
' underscores" (such as `_a`).'
),
)
@click.option(
Expand Down

0 comments on commit 299a57c

Please sign in to comment.