Path 1: 29 calls (0.53)

PosixPath (29) None (29)

GeneratorExit (29)

1def find_default_config_files() -> Iterator[Path]:
2    """Find all possible config files."""
3    yield from _yield_default_files()
4
5    try:
6        yield from _find_project_config()
7    except OSError:
8        pass
9
10    try:
11        yield from _find_config_in_home_or_environment()
12    except OSError:
13        pass
14
15    try:
16        if os.path.isfile("/etc/pylintrc"):
17            yield Path("/etc/pylintrc").resolve()
18    except OSError:
19        pass
            

Path 2: 21 calls (0.38)

1def find_default_config_files() -> Iterator[Path]:
2    """Find all possible config files."""
3    yield from _yield_default_files()
4
5    try:
6        yield from _find_project_config()
7    except OSError:
8        pass
9
10    try:
11        yield from _find_config_in_home_or_environment()
12    except OSError:
13        pass
14
15    try:
16        if os.path.isfile("/etc/pylintrc"):
17            yield Path("/etc/pylintrc").resolve()
18    except OSError:
19        pass
            

Path 3: 4 calls (0.07)

PosixPath (4)

GeneratorExit (4)

1def find_default_config_files() -> Iterator[Path]:
2    """Find all possible config files."""
3    yield from _yield_default_files()
4
5    try:
6        yield from _find_project_config()
7    except OSError:
8        pass
9
10    try:
11        yield from _find_config_in_home_or_environment()
12    except OSError:
13        pass
14
15    try:
16        if os.path.isfile("/etc/pylintrc"):
17            yield Path("/etc/pylintrc").resolve()
18    except OSError:
19        pass
            

Path 4: 1 calls (0.02)

PermissionError (1)

1def find_default_config_files() -> Iterator[Path]:
2    """Find all possible config files."""
3    yield from _yield_default_files()
4
5    try:
6        yield from _find_project_config()
7    except OSError:
8        pass
9
10    try:
11        yield from _find_config_in_home_or_environment()
12    except OSError:
13        pass
14
15    try:
16        if os.path.isfile("/etc/pylintrc"):
17            yield Path("/etc/pylintrc").resolve()
18    except OSError:
19        pass