Skip to content

Commit

Permalink
[doc] Remove hard-coded default in 'ignored-argument-names' descripti…
Browse files Browse the repository at this point in the history
…on (#7239)
  • Loading branch information
Pierre-Sassoulas committed Jul 30, 2022
1 parent 36a6723 commit 4117389
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion doc/user_guide/configuration/all-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1523,7 +1523,7 @@ Standard Checkers

--ignored-argument-names
""""""""""""""""""""""""
*Argument names that match this expression will be ignored. Default to name with leading underscore.*
*Argument names that match this expression will be ignored.*

**Default:** ``re.compile('_.*|^ignored_|^unused_')``

Expand Down
3 changes: 1 addition & 2 deletions examples/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,7 @@ callbacks=cb_,
# not be used).
dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_

# Argument names that match this expression will be ignored. Default to name
# with leading underscore.
# Argument names that match this expression will be ignored.
ignored-argument-names=_.*|^ignored_|^unused_

# Tells whether we should check for unused import in __init__ files.
Expand Down
3 changes: 1 addition & 2 deletions examples/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,7 @@ callbacks = ["cb_", "_cb"]
# be used).
dummy-variables-rgx = "_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_"

# Argument names that match this expression will be ignored. Default to name with
# leading underscore.
# Argument names that match this expression will be ignored.
ignored-argument-names = "_.*|^ignored_|^unused_"

# Tells whether we should check for unused import in __init__ files.
Expand Down
3 changes: 1 addition & 2 deletions pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -1056,8 +1056,7 @@ class VariablesChecker(BaseChecker):
"default": IGNORED_ARGUMENT_NAMES,
"type": "regexp",
"metavar": "<regexp>",
"help": "Argument names that match this expression will be "
"ignored. Default to name with leading underscore.",
"help": "Argument names that match this expression will be ignored.",
},
),
(
Expand Down

0 comments on commit 4117389

Please sign in to comment.