Skip to content

PytestConfigWarning about unknown keys can't be suppressed #7620

Closed
@The-Compiler

Description

@The-Compiler

@The-Compiler With pytest.PytestConfigWarning the INTERNALERROR is gone but I still get the warnings. I have even tried to ignore all PytestConfigWarning but with no success.

filterwarnings =
    ignore::pytest.PytestConfigWarning

This means, filterwarnings does nothing in my case. How can I suppress these warnings?

============================== warnings summary ===============================
venv\lib\site-packages\_pytest\config\__init__.py:1148
  venv\lib\site-packages\_pytest\config\__init__.py:1148: PytestConfigWarning: Unknown config ini key: flake8-ignore
  
    self._warn_or_fail_if_strict("Unknown config ini key: {}\n".format(key))

venv\lib\site-packages\_pytest\config\__init__.py:1148
  venv\lib\site-packages\_pytest\config\__init__.py:1148: PytestConfigWarning: Unknown config ini key: flake8-max-line-length

_Originally posted by @marincandenza in https://github.com/pytest-dev/pytest/issues/7612#issuecomment-668993473_

Metadata

Metadata

Assignees

No one assigned

    Labels

    plugin: warningsrelated to the warnings builtin plugintopic: configrelated to config handling, argument parsing and config file

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions