]> crepu.dev Git - config.git/blame - djavu-asus/elpy/rpc-venv/lib/python3.11/site-packages/flake8/main/cli.py
Configuracion en desarrollo PC pega
[config.git] / djavu-asus / elpy / rpc-venv / lib / python3.11 / site-packages / flake8 / main / cli.py
CommitLineData
53e6db90
DC
1"""Command-line implementation of flake8."""
2from __future__ import annotations
3
4import sys
5from typing import Sequence
6
7from flake8.main import application
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()