mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-31 03:06:53 +00:00
Add option to disable # noqa
Sometimes it is nice to be able to ignore what someone has used #noqa on and see what the results would be. This can also be specified in a config file to prevent people from using # noqa in a code base.
This commit is contained in:
parent
eafc91ae6a
commit
691bdc97ea
1 changed files with 7 additions and 0 deletions
|
|
@ -86,6 +86,13 @@ def register_default_options(option_manager):
|
|||
' For example, ``--select=E4,E51,W234``. (Default: %default)',
|
||||
)
|
||||
|
||||
add_option(
|
||||
'--disable-noqa', default=False, parse_from_config=True,
|
||||
action='store_true',
|
||||
help='Disable the effect of "# noqa". This will report errors on '
|
||||
'lines with "# noqa" at the end.'
|
||||
)
|
||||
|
||||
# TODO(sigmavirus24): Decide what to do about --show-pep8
|
||||
|
||||
add_option(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue