Skip to content

Deactivating the plugin #80

@m-aciek

Description

@m-aciek

Hi, I have pytest-flake8 installed, and in my pytest.ini file I have addopts: --flake8. In my CI I'd like to disable flake8 checks (I have separate job for them), but reuse other parts of the config. If I add -p no:flake8, the pytest invocation fails with:

% pytest tests -p no:flake8       
ERROR: usage: pytest [options] [file_or_dir] [file_or_dir] [...]
pytest: error: unrecognized arguments: --flake8
  inifile: …/pytest.ini
  rootdir: …

I didn't find any other way to disable the plugin using command line option. Is there any? If not, should it be fixed on pytest side or potentially added on pytest-flake8 side?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions