flake8/tests
Eric N. Vander Weele cf4bc53c12 Hoist passing through sys.argv at the CLI layer
`flake8.main.cli.main()` is the primary entry point for the command-line
implementation of flake8 (invoked via `__main__` or `console_scripts`).
Therefore, it is reasonable for the entry point to be responsible for
obtaining command line arguments from `sys.argv` there.

Note that `sys.argv[1:]` is necessary in order to strip off the script
name.  Formerly, this was not needed in
`Application.parse_preliminary_options_and_args()`, which was using
`sys.argv[:]` because the result of the argument parsing was just for
determining additional configuration to be loaded.  Then, the *real* CLI
argument parsing was forwarding the original `None` value to
`argparse.ArgumentParser.parse_args()`, which internally was obtaining
arguments as `sys.argv[1:]`.

Additionally, the contract for various argument parsing methods to be
guaranteed a `List[str]`.
2019-08-29 16:06:02 -04:00
..
fixtures Add paths option in local-plugins config file. 2017-10-24 19:58:18 -07:00
integration Hoist passing through sys.argv at the CLI layer 2019-08-29 16:06:02 -04:00
unit Put plugin options into separate argparse groups 2019-08-19 15:58:34 -07:00
__init__.py mypy now passes 2019-05-19 17:31:04 -07:00
conftest.py Add a docstring to conftest 2016-01-10 13:15:25 -06:00