blob: 8ba628802463529cc6cfe97ecd694e85d5b488b4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
"""Command-line implementation of flake8."""
from flake8.main import application
def main(argv=None):
# type: (Union[NoneType, List[str]]) -> NoneType
"""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 list argv:
The arguments to be passed to the application for parsing.
"""
app = application.Application()
app.run(argv)
app.exit()
|