mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-10 14:54:17 +00:00
Add minimal code to handle --prepend-config
Add code to handle config files specified with the --prepend-config argument. Options specified in prepend files get a higher precedence than flake8 defaults but a lower one than user configs. This allows to override the defaults without affecting the behaviour of user and local config files. This implements a solution for issue #349
This commit is contained in:
parent
4aa4eef0e7
commit
4f3087b369
6 changed files with 111 additions and 45 deletions
|
|
@ -17,7 +17,7 @@ def optmanager():
|
|||
@pytest.fixture
|
||||
def config_finder():
|
||||
"""Generate a simple ConfigFileFinder."""
|
||||
return config.ConfigFileFinder('flake8', [], [])
|
||||
return config.ConfigFileFinder('flake8', [], [], [])
|
||||
|
||||
|
||||
def test_parse_cli_config(optmanager, config_finder):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue