-
-
Notifications
You must be signed in to change notification settings - Fork 324
Comparing changes
Open a pull request
base repository: PyCQA/flake8
base: 3.7.9
head repository: PyCQA/flake8
compare: 3.8.0
Commits on Mar 19, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 6fb49b2 - Browse repository at this point
Copy the full SHA 6fb49b2View commit details
Commits on Jul 8, 2019
-
Merge branch 'master' into 'master'
Remove filter by filename in utils.filenames_from Closes #382 See merge request pycqa/flake8!311
Configuration menu - View commit details
-
Copy full SHA for 0d72470 - Browse repository at this point
Copy the full SHA 0d72470View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ba6677 - Browse repository at this point
Copy the full SHA 9ba6677View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65262dc - Browse repository at this point
Copy the full SHA 65262dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3397a94 - Browse repository at this point
Copy the full SHA 3397a94View commit details -
Merge branch 'dev' into 'master'
Move setup metadata to setup.cfg Closes #487 See merge request pycqa/flake8!325
Configuration menu - View commit details
-
Copy full SHA for f00d483 - Browse repository at this point
Copy the full SHA f00d483View commit details -
Configuration menu - View commit details
-
Copy full SHA for d4b0073 - Browse repository at this point
Copy the full SHA d4b0073View commit details -
Merge branch 'fix_appveyor' into 'master'
Fix / improve recently merged patches + CI See merge request pycqa/flake8!329
Configuration menu - View commit details
-
Copy full SHA for 4a52c99 - Browse repository at this point
Copy the full SHA 4a52c99View commit details -
Configuration menu - View commit details
-
Copy full SHA for 77abc11 - Browse repository at this point
Copy the full SHA 77abc11View commit details
Commits on Jul 19, 2019
-
Fix incorrect error string in documentation
In merge request !300 the description of F631 was accidentally used for F633.
Configuration menu - View commit details
-
Copy full SHA for ce26d89 - Browse repository at this point
Copy the full SHA ce26d89View commit details -
Merge branch 'F633' into 'master'
Fix incorrect error string in documentation See merge request pycqa/flake8!332
Configuration menu - View commit details
-
Copy full SHA for ace069c - Browse repository at this point
Copy the full SHA ace069cView commit details
Commits on Jul 23, 2019
-
Push down extra config file path normalization into main config handling
Move the path normalization for extra configuration file paths down into the main `config` module where other path normalization occurs. This also guarantees that the call to `utils.normalize_paths()` is given a sequence, instead of a potential `None` value.
Configuration menu - View commit details
-
Copy full SHA for 95f26d7 - Browse repository at this point
Copy the full SHA 95f26d7View commit details -
Merge branch 'extra-config-normalization' into 'master'
Push down extra config file path normalization into main config handling See merge request pycqa/flake8!333
Configuration menu - View commit details
-
Copy full SHA for 862b17d - Browse repository at this point
Copy the full SHA 862b17dView commit details
Commits on Jul 28, 2019
-
utils: Assert desired contract for
parse_comma_separated_list()
This is a separate commit so it can be dropped during a rebase or reverted independently.
Configuration menu - View commit details
-
Copy full SHA for 9fbaf2d - Browse repository at this point
Copy the full SHA 9fbaf2dView commit details -
utils: Change
parse_comma_separated_list()
contractThis is the initial incision point to only accept `str` (or `None`) for parsing out comma/whitespace/regexp separated values.
Configuration menu - View commit details
-
Copy full SHA for 9283f2f - Browse repository at this point
Copy the full SHA 9283f2fView commit details -
utils: Assert desired contract for
normalize_paths()
This is a separate commit so it can be dropped during a rebase or revert independently.
Configuration menu - View commit details
-
Copy full SHA for a0cd55f - Browse repository at this point
Copy the full SHA a0cd55fView commit details -
utils: Change
normalize_paths()
contractThe `normalize_paths()` utility was doing too much — parsing unstructured configuration path data and dispatching the scrubbed paths to be normalized. Towards moving the parsing of unstructured configuration path data closer towards were configuration occurs, have the utility accept only structured input for normalizing paths.
Configuration menu - View commit details
-
Copy full SHA for 1ba56b9 - Browse repository at this point
Copy the full SHA 1ba56b9View commit details -
Normalize option values additionally by type
Now that the contract has narrowed for `utils.normalize_paths()` and `utils.parse_comma_separated_list()`, `Option.normalize()` must handle when the option value is either a singular value or a sequence (i.e., `list`) of values. The paths where `Option.normalize()` is called are: 1. options/config.py: `MergedConfigParser.parse_*_config()` There are 3 paths wehre eventually `_normalize_value()` is called. 2. options/manager.py: `OptionManager.parse_args()` For (1), values are coming from the `configparser` module. For (2), values are coming from `optparse.OptionParser`. Rudimentary investigation seems to implicate that `optparse.OptionParser.parse_args()` always returns values in a `list` because it accumulates values. However, for `configparser`, the values are a string due to the key-value nature of the INI format. Given that `Option.normalize()` is the convergence point where normalization of an option occurs, it is acceptable for the method to also handle the parsing comma-separated values and path normalization by the option value's type.
Configuration menu - View commit details
-
Copy full SHA for f01011a - Browse repository at this point
Copy the full SHA f01011aView commit details -
utils: Tighten
parse_comma_separated_list()
contract furtherNow that callers are ensuring that `value` is not `None`, we can further tighten the contract and remove the conditional to account when `None` is passed-in for `value`. Additionally, add a new test vector to account for when an empty string is passed in, which would fail `if no value`.
Configuration menu - View commit details
-
Copy full SHA for 1757bce - Browse repository at this point
Copy the full SHA 1757bceView commit details -
Merge branch 'simplify-normalize-paths' into 'master'
Hoist comma-separated string parsing out of path normalization See merge request pycqa/flake8!334
Configuration menu - View commit details
-
Copy full SHA for e8de432 - Browse repository at this point
Copy the full SHA e8de432View commit details
Commits on Aug 1, 2019
-
Merge branch 'deprecate_setuptools_command' into 'master'
Deprecate the flake8 setuptools integration Closes #544 See merge request pycqa/flake8!330
Configuration menu - View commit details
-
Copy full SHA for 4b72089 - Browse repository at this point
Copy the full SHA 4b72089View commit details
Commits on Aug 2, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 3d1069a - Browse repository at this point
Copy the full SHA 3d1069aView commit details -
Merge branch 'remove_pydocstyle_workaround' into 'master'
Remove workaround for broken pydocstyle / flake8-docstrings See merge request pycqa/flake8!335
Configuration menu - View commit details
-
Copy full SHA for d9a4547 - Browse repository at this point
Copy the full SHA d9a4547View commit details
Commits on Aug 7, 2019
-
Document priority of configuration files and command line
Closes issue 560.
Configuration menu - View commit details
-
Copy full SHA for 9e97143 - Browse repository at this point
Copy the full SHA 9e97143View commit details -
Merge branch 'doc_conf_priority' into 'master'
Document priority of configuration files and command line Closes #560 See merge request pycqa/flake8!336
Configuration menu - View commit details
-
Copy full SHA for d43d498 - Browse repository at this point
Copy the full SHA d43d498View commit details
Commits on Aug 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for e8c79dc - Browse repository at this point
Copy the full SHA e8c79dcView commit details -
Merge branch 'show_source_with_tabs' into 'master'
Fix --show-source when indented with tabs Closes #563 See merge request pycqa/flake8!339
Configuration menu - View commit details
-
Copy full SHA for 03cb85f - Browse repository at this point
Copy the full SHA 03cb85fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 554e91f - Browse repository at this point
Copy the full SHA 554e91fView commit details
Commits on Aug 11, 2019
-
Merge branch 'fix_travis2' into 'master'
Fix travis-ci See merge request pycqa/flake8!340
Configuration menu - View commit details
-
Copy full SHA for 9c18aae - Browse repository at this point
Copy the full SHA 9c18aaeView commit details
Commits on Aug 18, 2019
-
Configuration menu - View commit details
-
Copy full SHA for b66ebd7 - Browse repository at this point
Copy the full SHA b66ebd7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76515bb - Browse repository at this point
Copy the full SHA 76515bbView commit details -
Merge branch 'argparse' into 'master'
move from optparse to argparse See merge request pycqa/flake8!341
Configuration menu - View commit details
-
Copy full SHA for f265b22 - Browse repository at this point
Copy the full SHA f265b22View commit details
Commits on Aug 19, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 8fd36ba - Browse repository at this point
Copy the full SHA 8fd36baView commit details -
Merge branch 'plugin_argparse_groups' into 'master'
Put plugin options into separate argparse groups Closes #565 See merge request pycqa/flake8!342
Configuration menu - View commit details
-
Copy full SHA for 7708e5b - Browse repository at this point
Copy the full SHA 7708e5bView commit details
Commits on Aug 28, 2019
-
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. Additionally, the contract for various argument parsing methods to be guaranteed a `List[str]`.
Configuration menu - View commit details
-
Copy full SHA for 50ac2f7 - Browse repository at this point
Copy the full SHA 50ac2f7View commit details -
Merge branch 'hoist-argv' into 'master'
Hoist passing through sys.argv at the CLI layer See merge request pycqa/flake8!343
Configuration menu - View commit details
-
Copy full SHA for 6a70aaa - Browse repository at this point
Copy the full SHA 6a70aaaView commit details -
Revert "Merge branch 'hoist-argv' into 'master'"
This reverts merge request !343
Configuration menu - View commit details
-
Copy full SHA for b41d983 - Browse repository at this point
Copy the full SHA b41d983View commit details -
Merge branch 'revert-6a70aaae' into 'master'
Revert "Merge branch 'hoist-argv' into 'master'" See merge request pycqa/flake8!344
Configuration menu - View commit details
-
Copy full SHA for 8b34b33 - Browse repository at this point
Copy the full SHA 8b34b33View commit details
Commits on Aug 29, 2019
-
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]`.
Configuration menu - View commit details
-
Copy full SHA for cf4bc53 - Browse repository at this point
Copy the full SHA cf4bc53View commit details -
Merge branch 'hoist-argv' into 'master'
Hoist passing through sys.argv at the CLI layer See merge request pycqa/flake8!345
Configuration menu - View commit details
-
Copy full SHA for 45ad2fa - Browse repository at this point
Copy the full SHA 45ad2faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5144196 - Browse repository at this point
Copy the full SHA 5144196View commit details -
Add typings to ConfigFileFinder constructor
`OptionManager.parse_known_args()` is guaranteed to return a list of remaining argument strings.
Configuration menu - View commit details
-
Copy full SHA for c2216c0 - Browse repository at this point
Copy the full SHA c2216c0View commit details -
Merge branch 'type-config-file-finder' into 'master'
Add typings to ConfigFileFinder constructor See merge request pycqa/flake8!346
Configuration menu - View commit details
-
Copy full SHA for a649019 - Browse repository at this point
Copy the full SHA a649019View commit details
Commits on Aug 30, 2019
-
Remove unused parameter from
OptionManager.parse_known_args()
The `values` parameter is not utilized anywhere and can be safely removed.
Configuration menu - View commit details
-
Copy full SHA for 220a928 - Browse repository at this point
Copy the full SHA 220a928View commit details -
Merge branch 'remove-parse-known-args-value' into 'master'
Remove unused parameter from `OptionManager.parse_known_args()` See merge request pycqa/flake8!347
Configuration menu - View commit details
-
Copy full SHA for c185a2f - Browse repository at this point
Copy the full SHA c185a2fView commit details -
Add typing to
OptionManager.parse_known_args()
Note that type casting is necessary given that `self.parser` is annotated as a `Union`.
Configuration menu - View commit details
-
Copy full SHA for 8ea3c63 - Browse repository at this point
Copy the full SHA 8ea3c63View commit details -
Merge branch 'type-parse-known-args' into 'master'
Add typing to `OptionManager.parse_known_args()` See merge request pycqa/flake8!348
Configuration menu - View commit details
-
Copy full SHA for eee53d9 - Browse repository at this point
Copy the full SHA eee53d9View commit details
Commits on Aug 31, 2019
-
Add typing to
OptionManager.parse_args()
Note that the `assert` is necessary to "cast" `self.parser` since it is specified as a `Union`.
Configuration menu - View commit details
-
Copy full SHA for ec8fcfc - Browse repository at this point
Copy the full SHA ec8fcfcView commit details -
Test default provided options are forwarded
Ensure options provided external to the command-line (i.e., configuration files) are present in the final result of options.
Configuration menu - View commit details
-
Copy full SHA for b231c10 - Browse repository at this point
Copy the full SHA b231c10View commit details -
Set configuration file-provided values via ArgumentParser.set_defaults()
When calling `ArgumentParser.parse_args()` with the `namespace` argument, command-line options are just added to the namespace without going through any of the argument parsing and type conversion logic (e.g., the `type` keyword argument of `ArgumentParser.add_argument()`). In other words, it is assumed that a namespace is well-formed from a previous invocation of `ArgumentParser.parse_args()`. The `values` parameter is intended to be values already-provided from configuration files. To take advantage of the logic defined by `ArgumentParser.add_argument()`, utilize `ArgumentParser.set_defaults()` instead.
Configuration menu - View commit details
-
Copy full SHA for aadd09d - Browse repository at this point
Copy the full SHA aadd09dView commit details
There are no files selected for viewing