diff --git a/src/flake8/options/config.py b/src/flake8/options/config.py index 6f6a4ec..b5904cb 100644 --- a/src/flake8/options/config.py +++ b/src/flake8/options/config.py @@ -11,12 +11,12 @@ from typing import Tuple from flake8.options.manager import OptionManager LOG = logging.getLogger(__name__) -DEFAULT_CANDIDATES = ("setup.cfg", "tox.ini", ".flake8") -ADDITIONAL_CANDIDATES = ("flake8",) -ADDITIONAL_LOCATIONS = ( +DEFAULT_CANDIDATES = ["setup.cfg", "tox.ini", ".flake8"] +ADDITIONAL_CANDIDATES = ["flake8"] +ADDITIONAL_LOCATIONS = [ os.path.expanduser(r"~"), os.path.expanduser(r"~/.config"), -) +] def _is_config(path: str) -> bool: diff --git a/tests/integration/test_main.py b/tests/integration/test_main.py index 17b3f75..9aa4eb9 100644 --- a/tests/integration/test_main.py +++ b/tests/integration/test_main.py @@ -10,8 +10,8 @@ from flake8 import utils from flake8.main import cli from flake8.options import config -config.ADDITIONAL_LOCATIONS = () -config.ADDITIONAL_CANDIDATES = () +config.ADDITIONAL_LOCATIONS = [] +config.ADDITIONAL_CANDIDATES = [] def test_diff_option(tmpdir, capsys): diff --git a/tests/unit/test_options_config.py b/tests/unit/test_options_config.py index b89daf3..d4f7649 100644 --- a/tests/unit/test_options_config.py +++ b/tests/unit/test_options_config.py @@ -8,8 +8,8 @@ from flake8.options.manager import OptionManager def test_config_not_found_returns_none(tmp_path): - config.ADDITIONAL_LOCATIONS = () - config.ADDITIONAL_CANDIDATES = () + config.ADDITIONAL_LOCATIONS = [] + config.ADDITIONAL_CANDIDATES = [] assert config._find_config_file(str(tmp_path)) is None