MCPcopy Create free account
hub / github.com/PyCQA/flake8 / local_config

Function local_config

tests/integration/test_plugins.py:43–54  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

41
42@pytest.fixture
43def local_config(tmp_path):
44 cfg_s = f"""\
45[flake8:local-plugins]
46extension =
47 XE = {ExtensionTestPlugin.__module__}:{ExtensionTestPlugin.__name__}
48report =
49 XR = {ReportTestPlugin.__module__}:{ReportTestPlugin.__name__}
50"""
51 cfg = tmp_path.joinpath("tox.ini")
52 cfg.write_text(cfg_s)
53
54 return str(cfg)
55
56
57def test_enable_local_plugin_from_config(local_config):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected