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

Function main

src/flake8/main/cli.py:10–24  ·  view source on GitHub ↗

Execute the main bit of the application. This handles the creation of an instance of :class:`Application`, runs it, and then exits the application. :param argv: The arguments to be passed to the application for parsing.

(argv: Sequence[str] | None = None)

Source from the content-addressed store, hash-verified

8
9
10def main(argv: Sequence[str] | None = None) -> int:
11 """Execute the main bit of the application.
12
13 This handles the creation of an instance of :class:`Application`, runs it,
14 and then exits the application.
15
16 :param argv:
17 The arguments to be passed to the application for parsing.
18 """
19 if argv is None:
20 argv = sys.argv[1:]
21
22 app = application.Application()
23 app.run(argv)
24 return app.exit_code()

Calls 2

runMethod · 0.95
exit_codeMethod · 0.95

Used in the wild real call sites across dependent graphs

searching dependent graphs…