Path 1: 8 calls (0.5)

'/private/var/folders/yp/qx0crmvd4sbck7chb52sws500000gn/T/tmpq1fsfuc7/a/b/pylintrc' (3) '/Users/andrehora/Documents/git/projects-pathspotter/pylint/py...

1def find_pylintrc() -> str | None:
2    """Search the pylint rc file and return its path if it finds it, else return
3    None.
4    """
5    # TODO: 3.0: Remove deprecated function
6    warnings.warn(
7        "find_pylintrc and the PYLINTRC constant have been deprecated. "
8        "Use find_default_config_files if you want access to pylint's configuration file "
9        "finding logic.",
10        DeprecationWarning,
11        stacklevel=2,
12    )
13    for config_file in find_default_config_files():
14        if str(config_file).endswith("pylintrc"):
15            return str(config_file)
16    return None
            

Path 2: 8 calls (0.5)

None (8)

1def find_pylintrc() -> str | None:
2    """Search the pylint rc file and return its path if it finds it, else return
3    None.
4    """
5    # TODO: 3.0: Remove deprecated function
6    warnings.warn(
7        "find_pylintrc and the PYLINTRC constant have been deprecated. "
8        "Use find_default_config_files if you want access to pylint's configuration file "
9        "finding logic.",
10        DeprecationWarning,
11        stacklevel=2,
12    )
13    for config_file in find_default_config_files():
14        if str(config_file).endswith("pylintrc"):
15            return str(config_file)
16    return None