MCPcopy
hub / github.com/PyCQA/flake8 / options

Function options

tests/unit/test_base_formatter.py:15–20  ·  view source on GitHub ↗

Create an argparse.Namespace instance.

(**kwargs)

Source from the content-addressed store, hash-verified

13
14
15def options(**kwargs):
16 """Create an argparse.Namespace instance."""
17 kwargs.setdefault("color", "auto")
18 kwargs.setdefault("output_file", None)
19 kwargs.setdefault("tee", False)
20 return argparse.Namespace(**kwargs)
21
22
23@pytest.mark.parametrize("filename", [None, "out.txt"])

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…