flake8/tests/unit
Ian Cordasco 2d3e277b1e
Handle optional parameters that were never supported
Previously, pycodestyle never introspected the argument names for
classes except to require that ``tree`` be an argument it could pass.
For Flake8 3.0, we lifted that restriction, but old plugins seem to
have cargo-culted their __init__ signature to be

    def __init__(self, tree, builtins=None):

For some yet unknown reason. This was causing an AttributeError. By
updating flake8.utils.parameters_for to return a dictionary that
indicates whether the parameter is required or not, we can side-step
this by simply ignoring the parameter if it has a default value and
we cannot provide it.

Closes #151
2016-06-28 09:36:24 -05:00
..
test_base_formatter.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_checker_manager.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_config_file_finder.py Prefer .flake8 if present for options. 2016-06-25 14:22:21 -06:00
test_file_processor.py Handle optional parameters that were never supported 2016-06-28 09:36:24 -05:00
test_merged_config_parser.py Parse hyphenated config names also 2016-06-28 05:47:14 -05:00
test_notifier.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_option.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_option_manager.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_plugin.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_plugin_manager.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_plugin_type_manager.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_style_guide.py Configure flake8-import-order to use Google Style 2016-06-17 10:26:36 -05:00
test_trie.py Start documenting our Trie implementation 2016-02-01 20:09:15 -06:00
test_utils.py Handle optional parameters that were never supported 2016-06-28 09:36:24 -05:00