Skip to content

Commit 06e1527

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent a7d7976 commit 06e1527

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/_pytest/config/findpaths.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def locate_config(
9393
args: Iterable[Path],
9494
) -> tuple[Path | None, Path | None, ConfigDict, Sequence[str]]:
9595
"""Search in the list of arguments for a valid ini-file for pytest,
96-
and return a tuple of (rootdir, inifile, cfg-dict, ignored-config-files), where
96+
and return a tuple of (rootdir, inifile, cfg-dict, ignored-config-files), where
9797
ignored-config-files is a list of config basenames found that contain
9898
pytest configuration but were ignored."""
9999
config_names = [
@@ -122,7 +122,10 @@ def locate_config(
122122
index = config_names.index(config_name)
123123
for remainder in config_names[index + 1 :]:
124124
p2 = base / remainder
125-
if p2.is_file() and load_config_dict_from_file(p2) is not None:
125+
if (
126+
p2.is_file()
127+
and load_config_dict_from_file(p2) is not None
128+
):
126129
ignored_config_files.append(remainder)
127130
return base, p, ini_config, ignored_config_files
128131
if found_pyproject_toml is not None:

0 commit comments

Comments
 (0)