File: conftest.py

package info (click to toggle)
pytest-mypy-testing 0.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 268 kB
  • sloc: python: 1,151; sh: 13; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 325 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
# SPDX-FileCopyrightText: David Fritzsche
# SPDX-License-Identifier: CC0-1.0


def pytest_cmdline_main(config):
    """Load pytest_mypy_testing if not already present."""
    if not config.pluginmanager.get_plugin("mypy-testing"):
        from pytest_mypy_testing import plugin

        config.pluginmanager.register(plugin)