1. 18 3月, 2020 1 次提交
  2. 27 1月, 2020 2 次提交
  3. 21 1月, 2020 1 次提交
  4. 20 1月, 2020 3 次提交
    • Eric N. Vander Weele's avatar
      config: Determine path to user configuration immediately · aab1f143
      Eric N. Vander Weele 创作于
      Preemptively determine the path of the user configuration file during
      the construction of the `ConfigFileFinder` object.  The user
      configuration path will always be the same, regardless of when it gets
      obtained by a run of `flake8`.
      
      This isolates the logic of determining the user configuration path into
      a static helper method to be called to set the `.user_config_file`
      attribute.  The helper method leverages `utils.is_windows()`, instead of
      reimplementing the check, and decomposes clearly the directory name and
      the base name to construct the path with a single `return` path.
      Additionally, this avoids reconstructing the path on demand of obtaining
      the user configuration file path.
      aab1f143
    • Anthony Sottile's avatar
      Merge branch 'config-remove-config-caching' into 'master' · 990adcd5
      Anthony Sottile 创作于
      config: Remove checks for configs being previously parsed
      
      See merge request pycqa/flake8!408
      990adcd5
    • Eric N. Vander Weele's avatar
      config: Remove checks for configs being previously parsed · 716db116
      Eric N. Vander Weele 创作于
      Remove the checks to see if a configuration file has already been seen
      and parsed.  These checks aren't necessary because the entire run of
      `flake8` calls these methods *only* once per configuration provided.
      716db116
  5. 16 1月, 2020 10 次提交
  6. 13 1月, 2020 10 次提交
  7. 12 1月, 2020 1 次提交
  8. 08 1月, 2020 1 次提交
  9. 07 1月, 2020 5 次提交
    • Eric N. Vander Weele's avatar
      Remove unused 'isolated' parameter · c918e724
      Eric N. Vander Weele 创作于
      Now that `ConfigFileFinder.ignore_config_files` attribute is used
      everywhere and is constructed from the `--isolated` CLI option, the now
      unused `isolated` parameters can be safely removed.
      c918e724
    • Eric N. Vander Weele's avatar
      config: Switch code paths to use 'ConfigFileFinder.ignore_config_files' · 3d546d44
      Eric N. Vander Weele 创作于
      Now that the `ConfigFileFinder` has the `.ignore_config_files`
      attribute, switch the relevant code paths to utilize this public
      attribute.
      
      Tests have been updated to either construct `ConfigFileFinder` or mock
      the object appropriately.
      3d546d44
    • Eric N. Vander Weele's avatar
      config: Add 'ignore_config_files' parameter to ConfigFileFinder · a5c17c1a
      Eric N. Vander Weele 创作于
      The `--isolated` flag is passed into `MergedConfigParser.parse()` and
      the module-level function `config.get_local_plugins()`.  Since both of
      these places utilize the `ConfigFileFinder` object and isolation
      pertains to how the `ConfigFileFinder` should behave with respect to
      isolation, this incremental change more directly associates the
      `ConfigFileFinder` and configuration file isolate.
      a5c17c1a
    • Anthony Sottile's avatar
      Merge branch 'config-read-varargs' into 'master' · 4395b056
      Anthony Sottile 创作于
      config: Change ConfigFileFinder._read_config() to accept variadic args
      
      See merge request pycqa/flake8!397
      4395b056
    • Eric N. Vander Weele's avatar
      config: Change ConfigFileFinder._read_config() to accept variadic args · 1a4060cd
      Eric N. Vander Weele 创作于
      This simplifies `._read_config()` by removing a conditional branch in
      the situation where it is called with one file to process.  Now the
      contract accepts any number of arguments of the same type.
      
      Where callers invoke `._read_config()` with a `Sequence`, the call site
      has been changed to unpack arguments (i.e., `*`).
      
      The tests in `test_merged_config_parser.py` needed to return a string
      for the user configuration path instead of an empty list since
      `ConfigFileFinder.user_config_file()` returns a string.
      1a4060cd
  10. 30 12月, 2019 2 次提交
  11. 29 12月, 2019 1 次提交
    • Eric N. Vander Weele's avatar
      aggregator: Forward --config and --isolated options during aggregation · 7f9f7006
      Eric N. Vander Weele 创作于
      This fixes a regression introduced in !346 to ensure that `--config` and
      `--isolated` are recognized in `aggregate_options()`.
      
      The regression manifested because `aggregate_options()` was relying on
      re-parsing `argv` to obtain the option values.  However, !346 changed
      the preliminary parsing logic to only parse and "eat" what is necessary
      and forward along the options needed before all the configuration was
      loaded.  This code path was overlooked because the tests in
      `test_aggregator()` were passing but the call from the `Application`
      object would never have these options in the remaining `argv` list to be
      passed long.
      7f9f7006
  12. 03 12月, 2019 3 次提交