]>
crepu.dev Git - config.git/blob - djavu-asus/emacs/elpy/rpc-venv/lib/python3.11/site-packages/flake8/main/cli.py
01a67ac95dc9dce76ce26057590aff8dfc3d2909
1 """Command-line implementation of flake8."""
2 from __future__
import annotations
5 from typing
import Sequence
7 from flake8
.main
import application
10 def main(argv
: Sequence
[str] |
None = None) -> int:
11 """Execute the main bit of the application.
13 This handles the creation of an instance of :class:`Application`, runs it,
14 and then exits the application.
17 The arguments to be passed to the application for parsing.
22 app
= application
.Application()
24 return app
.exit_code()