From bb12b83cc06b0a1991e3e36a4a966f5e50c8791a Mon Sep 17 00:00:00 2001 From: "Eric N. Vander Weele" Date: Sat, 12 Oct 2019 15:36:17 +0100 Subject: [PATCH] options: Remove parsing `--output-file` from the configuration file The `--output-file` option is used when parsing and handling preliminary options for logging. It is also used to set `BaseFormatter.filename`. Towards ensuring that the option is respected consistently for both logging and formatting plugins, only observe the value from the CLI. --- src/flake8/main/options.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/flake8/main/options.py b/src/flake8/main/options.py index 75d2c8f..a7e9e8f 100644 --- a/src/flake8/main/options.py +++ b/src/flake8/main/options.py @@ -261,7 +261,6 @@ def register_default_options(option_manager): add_option( "--output-file", default=None, - parse_from_config=True, help="Redirect report to a file.", )