- 16 1月, 2020 2 次提交
-
-
由 Anthony Sottile 创作于
Some typo fixes in git hooks docs See merge request pycqa/flake8!403
-
由 Sorin Sbarnea 创作于
-
- 13 1月, 2020 10 次提交
-
-
由 Anthony Sottile 创作于
config: Make ConfigFileFinder 'extra_config_files' parameter optional See merge request pycqa/flake8!402
-
由 Eric N. Vander Weele 创作于
This simplifies the number of required parameters needed for the `ConfigFileFinder` object throughout the various tests.
-
由 Anthony Sottile 创作于
Determine config file override from the ConfigFileFinder object See merge request pycqa/flake8!401
-
由 Eric N. Vander Weele 创作于
Now that `ConfigFileFinder.config_file` attribute is used everywhere and is constructed from the `--config` CLI option, the now unused `cli_config` parameters can be safely removed.
-
由 Eric N. Vander Weele 创作于
Now that the `ConfigFileFinder` has the `.config_file` attribute, switch the relevant code paths to utilize this public attribute. Tests have been updated to either construct `ConfigFileFinder` or mock the object appropriately.
-
由 Eric N. Vander Weele 创作于
The `--config` 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 the configuration file override pertains to how configuration behaves, this incremental change directly associates the `ConfigFileFinder` and the configuration file override.
-
由 Anthony Sottile 创作于
config: Remove ConfigFileFinder 'parent' and 'tail' attributes See merge request pycqa/flake8!400
-
由 Anthony Sottile 创作于
application: Remove stale docstring param for `.find_plugins()` See merge request pycqa/flake8!399
-
由 Eric N. Vander Weele 创作于
These attributes are only needed within the `.generate_possible_local_files()` method. Therefore, just obtain the current working directory at the beginning of the method and reduce the lifetime state of the `ConfigFileFinder` object.
-
由 Eric N. Vander Weele 创作于
`os.getcwd()` returns an absolute path; thus, the patched paths should be absolute as well. This is an incremental change towards removing the `ConfigFileFinder` attributes `.parent` and `.tail` to be localized to `.generate_possible_local_files()`. Without this, the tests fail when moving the patching because `os.path.abspath()` calls `os.getcwd()`, expecting `os.getcwd()` to be an absolute path.
-
- 12 1月, 2020 1 次提交
-
-
由 Eric N. Vander Weele 创作于
The 'ignore_config_files' parameter was accidentally not removed in c918e724.
-
- 08 1月, 2020 1 次提交
-
-
由 Anthony Sottile 创作于
Determine config isolation from the ConfigFileFinder object See merge request pycqa/flake8!398
-
- 07 1月, 2020 5 次提交
-
-
由 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.
-
由 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.
-
由 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.
-
由 Anthony Sottile 创作于
config: Change ConfigFileFinder._read_config() to accept variadic args See merge request pycqa/flake8!397
-
由 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.
-
- 30 12月, 2019 2 次提交
-
-
由 Anthony Sottile 创作于
aggregator: Forward --config and --isolated options during aggregation Closes #605 See merge request pycqa/flake8!395
-
由 Eric N. Vander Weele 创作于
Prevent regressions by adding integration tests to ensure that these options are passed through to `aggregator.aggregate_options()`.
-
- 29 12月, 2019 1 次提交
-
-
由 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.
-
- 03 12月, 2019 3 次提交
-
-
由 Anthony Sottile 创作于
application: Inline creation of config.ConfigFileFinder See merge request pycqa/flake8!393
-
由 Eric N. Vander Weele 创作于
Simplify the initialization code path by invoking `config.ConfigFileFinder` directly instead of the extra hop by calling the static class-level `Application.make_config_finder()` method.
-
由 Anthony Sottile 创作于
`--disable-noqa` does not override `# flake8: noqa` Closes #590 See merge request pycqa/flake8!380
-
- 02 12月, 2019 4 次提交
-
-
由 Anthony Sottile 创作于
Fix typos See merge request pycqa/flake8!392
-
由 Brian Wignall 创作于
-
由 Anthony Sottile 创作于
Fix --exit-zero when --diff is empty See merge request pycqa/flake8!391
-
由 Kinya TERASAKA 创作于
fixes pycqa/flake8/merge_requests!137
-
- 29 11月, 2019 6 次提交
-
-
由 Anthony Sottile 创作于
Test pypy in gitlab CI See merge request pycqa/flake8!390
-
由 Anthony Sottile 创作于
-
由 Anthony Sottile 创作于
Work around RecursionError in EntryPoint.__repr__ in pypy See merge request pycqa/flake8!389
-
由 Anthony Sottile 创作于
Switch from entrypoints to importlib_metadata Closes #569 See merge request pycqa/flake8!388
-
由 Anthony Sottile 创作于
-
- 27 11月, 2019 4 次提交
-
-
由 Anthony Sottile 创作于
application: Update find_plugins() docstring See merge request pycqa/flake8!387
-
由 Anthony Sottile 创作于
application: Remove local plugins state See merge request pycqa/flake8!386
-
由 Eric N. Vander Weele 创作于
When the checks for the cached objects were removed in 2d5eae63, the `.find_plugins()` docstring need to be updated to specify the updated behavior.
-
由 Eric N. Vander Weele 创作于
The `.local_plugins` attribute can be removed from the `Application` since the usage of the `LocalPlugins` object is isolated to the `.find_plugins()` method.
-
- 22 11月, 2019 1 次提交
-
-
由 Anthony Sottile 创作于
application: Remove configuration finder state See merge request pycqa/flake8!384
-